Skip to content
Prev 5563 / 20628 Next

Lmer and variance-covariance matrix

I sent this on Friday and forgot to copy to list:

Antoine,

If you reshape your data into the form Fam, Y1, Y2, Y3, ... , Y15, then

summary( manova(cbind(Y1,Y2, ... ) ~ Fam ))$SS

produces between and within family sums of squares and products matrices 
(15 x 15). Divide by appropriate number of d.f. to convert these to mean 
square and product matrices, subtract within from between and divide by 
family size to get the estimated matrix of between-family variances and 
covariances.

Is it that simple? Or have I forgotten something?
Paul Johnson wrote: