Skip to content
Prev 8621 / 20628 Next

Covariance Matrix of fixed effects in lmer()

Matthias Suter <matthias.suter at ...> writes:
It sounds like you want vcov() ... ?  (vcov() works for
lm() results, and many other model types, too ...

  methods(class="mer")
  showMethods(class="mer") ## S4 methods

## or if using development lme4 from r-forge:
  methods(class="merMod")


e.g.

(fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
vcov(fm1)

2 x 2 Matrix of class "dpoMatrix"
            (Intercept)      Days
(Intercept)   46.574978 -1.451084
Days          -1.451084  2.389469

  cheers
   Ben Bolker