Skip to content
Prev 14745 / 20628 Next

simulation of factor-specific random effect variance estimation, the order of assigned variance matters?

Hi Chun (sorry for previously confusing your first and last name),

The lmer term you suggest fits an unstructured covariance matrix (i.e.,  
also the covariance for the "groupID " random effects between "prog"  
levels), whereas the lme term is fitting a diagonal covariance matrix  
(where the covariance is restrained to be zero).  The latter is more  
parsimonious (one less parameter) and corresponds to what you simulated -  
no covariance. I hope someone else can help you how to specify the same  
diagonal covariance matrix for lmer to have equivalent models between  
packages. Unfortunately, I don't know how that works using lmer.

Best,
Paul



On Thu, 28 Jul 2016 12:44:09 +0300, Chen Chun <talischen at hotmail.com>  
wrote: