[R-sig-ME] forcing uncorrelated random effects

Daniel Ezra Johnson danielezrajohnson at gmail.com
Thu Jun 11 20:03:10 CEST 2009

>> m1 = lmer( count ~ (1|patient)+time )
>> m2 = lmer( count ~ (time|patient)+time )
> Model 2 has two additional parameters over model 1, a variance of random
> slopes and a covariance of random slopes and random intercepts. How do I
> specify a model that has random slopes but no covariance between slopes and
> intercepts?

m3  = lmer( count ~ (0+time|patient)+(1|patient)+time)

i believe this is what you are looking for.


More information about the R-sig-mixed-models mailing list