Skip to content
Prev 357 / 20628 Next

Different random effects variances for outcomes and groups

Hi David,

Thanks for your reply.  I comment on your various questions below.
David Afshartous wrote:

            
Yes, you are right here (apart from a typo - there are 100 x 2 x 3 x 2 = 
1200 observations).  The groups do contain different children.
I think you're right here and this corresponds with what you say below.  
I think my model should be instead written as

y_{ir}(t) = \beta_{0r} + \beta_{1r} group_i + \beta_{2r} t + \beta_{3r}
group_i : t  + group_i * b_{irp} + \epsilon_{ir}(t),

where p=0,1 represents the value of 'group_i' and is distributed as you 
suggest.  This seems to make more sense than everyone having a random 
intercept from one distribution and group 1 having an additional one.  
This way they are completely separate.
Yes, I should have considered this more carefully.  Certainly the random 
effects for coordinates 1 and 2 for a particular individual should have 
been simulated from a multivariate normal distribution rather than from 
two separate normals.  I don't think that there is so much a group 
component and a coordinate component, as a coordinate component that 
differs depending on which group the individual comes from.  So, for 
example, instead of the randeff statement below we could have (repeated 
across times and inserted in the correct positions for each group):

randeff.gp0 <- mvrnorm(n.subj/2, c(0,0), matrix(c(100,50,50,400), 
nc=2))  # coordinates 1 and 2 (respectively) for individuals in group 0 #
randeff.gp1 <- mvrnorm(n.subj/2, c(0,0), matrix(c(225,70,70,625), 
nc=2))  # coordinates 1 and 2 (respectively) for individuals in group 1 #

I think the group itself should only be a fixed effect because, while 
individuals are randomly sampled from two populations of cleft-lip 
patients and healthy controls, the groups are fixed (not sampled from a 
population of groups).  What do you think?  This has been one point that 
I have wondered long and hard about.
I do agree and I'm not sure now what model the first lmer2 model 
statement is actually fitting, because I would have expected at least 
some of the coord1:group and coord2:group random effects to be zero.  
The second lmer2 statement gives more sensible answers and corresponds 
with the rewritten model above.  Also when I check the estimated random 
effects variances and covariances against the actual values, there is 
good correspondence so I think I will proceed with this parameterisation.

Many thanks for your help,
Sarah