lmer2lm {tukeytrend}R Documentation

Coerce objects of class lmerMod or lme to lm

Description

Coerce fitted mixed effect models of class lmerMod or lme to an lm-like object using a pseudo data approach (Ritz et al., 2017)

Usage

lmer2lm(lmerFit)

Arguments

lmerFit

a fitted object of class "lmerMod" or "lme", as can be obtained from packages "lme4" and "nlme"

Details

The returned object resembles a fitted model of class "lm" such that its asymptotic representation corresponds to that of the originally fitted mixed model, see Ritz et al. (2017) for details.

Author(s)

Christian Ritz

References

Christian Ritz, Rikke Pilmann Laursen and Camilla Trab Damsgaard (2017): Simultaneous inference for multilevel linear mixed models - with an application to a large-scale school meal study: Appl. Statist. 66, Part 2, pp. 295-311.


[Package tukeytrend version 0.7 Index]