Skip to content
Prev 11449 / 20628 Next

lme4: constrain sigma to 0

Is there a particular reason why you would want to fit this with lmer() as opposed to gls() from nlme? In your demo script:

res <- gls(y ~ time, correlation = corSymm(form = ~ 1 | student), weights = varIdent(form = ~ 1 | time), data=dat.sim)

will fit that model.

Best,
Wolfgang