Skip to content
Prev 199992 / 398503 Next

Finding covariance in a lmer mixed effects model

The way you have specified the model implies that the covariance is 0.

If you actually want to estimate the covariance, you need to use:

fm1 <- lmer(fpg ~ 1 + time + (time|ID), fpg_lme)

Best,

--
Wolfgang Viechtbauer                        http://www.wvbauer.com/
Department of Methodology and Statistics    Tel: +31 (0)43 388-2277
School for Public Health and Primary Care   Office Location:
Maastricht University, P.O. Box 616         Room B2.01 (second floor)
6200 MD Maastricht, The Netherlands         Debyeplein 1 (Randwyck)


----Original Message----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Kurt Smith Sent:
Thursday, November 12, 2009 05:56 To: r-help at r-project.org
Subject: [R] Finding covariance in a lmer mixed effects model