Subscribe Bookmark RSS Feed

Fit Model- Repeated, Fixed and Random Effects

Abbiegraham

Community Member

Joined:

Oct 23, 2017

Hi,

I am hoping for some guidance with a test I  would like to run. We have a trial were birds were fed 2 diets (Control and Treatment). Every week (Day 7, 14, 21, 28) subjects were weighed to analyse performance data (weight gain, feed efficiency, mortality etc.). The exact same trial was repeated in the same facility two months later, using the exact same diets and trial protocol. I want to combine the results of both trials and analyse them together.

 

Please can somone advise how to do this? I am guessing I would need to add trial, treatment and day as fixed effects and do this via the Fit Model platform. Is that right? One of the trials performed better in general, but I am not interested in whcih trial performed better, only which treatment performed better overall. Should Day be added as a repeated effect or is there an option to do this? I am using JMP, but do not have JMP Pro, although I do have the repeated measures Add In, but not sure if this is what I should be using.

 

Also- what personality should I select, and can I add something as both a fixed and random effect?

 

Thanks in advance!

1 REPLY
julian

Staff

Joined:

Jun 25, 2014

Hi @Abbiegraham,

 

It sounds like you have a repeated measures experiment with one between-subject factor (diet) and one within-subject factor (time). You could consider the different runs of the entire experiment another between-subject factor, but if they really were identical I might ignore that fact since it will increase the complexity of the model. 

 

You can run this model in standard JMP by using Analyze > Fit Model. Setting up the model effects will be easier using my add-in, which it sounds like you already have (https://community.jmp.com/t5/JMP-Add-Ins/Full-Factorial-Repeated-Measures-ANOVA-Add-In/ta-p/23904). I've attached a data set with the format the data need to be in. dataset.png

You'll see that I have included a column for the experimental run, but we won't be using it when we set up the model. If you were interested in seeing whether there is evidence for differences between the experiments you did a few months apart you could use that column as a between-subject effect (it's between-subjects in the same way that diet is between-subjects -- no single bird is measured at both levels of the factor).  

 

 

To set up the model using my add-in, we'll use Bird ID as the subject ID, Diet as a between-subject effect, time as a within-subject effect (and be sure that this column is marked as nominal), and weight as your Y. model.png

 This will return a linear mixed effects model equivalent to a standard repeated measures ANOVA. 

 

I hope this helps!

 

@julian