Skip to content
Prev 19173 / 20628 Next

Random effects variances in R and SPSS not matching

Dear Ben,

I should add that using `control = lmeControl(sigma=1e-5, opt ="optim")`
does make the random effects variances from `lme()` match that of SPSS but
t completely change -2*logLik(model).

Specifically, before using  `control = lmeControl(sigma=1e-5, opt
="optim")`, the  -2*logLik(model_SPSS) =  -2*logLik(model_lme).
But,  after using  `control = lmeControl(sigma=1e-5, opt ="optim")`, the
-2*logLik(model_SPSS) NOT equal to   -2*logLik(model_lme).

Thanks,
Simon
On Thu, Apr 1, 2021 at 10:19 PM Simon Harmel <sim.harmel at gmail.com> wrote: