Skip to content
Prev 13534 / 20628 Next

lme and lmer degrees of freedom (and hence p values) from don't agree . . . Why?????????

Following up/amplifying: the heuristic inner-outer algorithm that lme
uses to guess the degrees of freedom can definitely fail for
random-slopes models (I should probably add this to the GLMM FAQ if I
haven't already). Logically, because slope varies across
random-effects groups, we have effectively 22 df (number of groups-1)
for estimating the significance of the slope fixed effect. The
Satterthwaite approximation that lmerTest uses gets it right here (as
would ddf="Kenward-Roger" in lmerTest anova()).

  Good to have this stated for the record.


  cheers
     Ben Bolker
On Tue, Jul 7, 2015 at 12:34 PM, Jake Westfall <jake987722 at hotmail.com> wrote: