Skip to content
Prev 14743 / 20628 Next

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

Thank you Paul for the help. It's now working as I expected. and for lmer(), I guess the correct term should be (0 + prog | groupID)?


Regards,

Chun


________________________________
??????: Paul Debes <paul.debes at utu.fi>
????????: 2016??7??28?? 7:22
??????: r-sig-mixed-models at r-project.org
????: Chen Chun
????: Re: [R-sig-ME] simulation of factor-specific random effect variance estimation, the order of assigned variance matters?

Hi Chen,

I think you may only have to change the random effect specification from
variance contrast to variance means:

random = list(groupID = pdDiag(~prog))
to
random = list(groupID = pdDiag(~0+prog))

It may also be good to change "groupID" from a continuous covariate to a
factor.
This should give the expected standard deviations for the random-term
groups in both simulations.
Just as a note, please be aware that you do not specify variance but
standard deviation in your simulations (model output is also in standard
deviation).

Best,
Paul


On Wed, 27 Jul 2016 23:48:01 +0300, Chen Chun <talischen at hotmail.com>
wrote:
--
Paul V. Debes
DFG Research Fellow

Division of Genetics and Physiology
Department of Biology
University of Turku
20014 Finland

Email: paul.debes at utu.fi