lmer2lm: Coerce objects of class lmerMod or lme to lm

Description Usage Arguments Details Author(s) References

View source: R/lmer2lm.R

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

1
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.


tukeytrend documentation built on March 13, 2020, 5:06 p.m.