Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

extract.lmeDesign

Extract the Design of a linear mixed model


Description

These functions extract various elements of the design of a fitted lme-, mer or lmerMod-Object. They are called by exactRLRT and exactLRT.

Usage

extract.lmeDesign(m)

Arguments

m

a fitted lme- or merMod-Object

Value

a a list with components

  • Vr estimated covariance of the random effects divided by the estimated variance of the residuals

  • X design of the fixed effects

  • Z design of the random effects

  • sigmasq variance of the residuals

  • lambda ratios of the variances of the random effects and the variance of the residuals

  • y response variable

Author(s)

Fabian Scheipl, extract.lmerModDesign by Ben Bolker. Many thanks to Andrzej Galecki and Tomasz Burzykowski for bug fixes.

Examples

library(nlme)
design <- extract.lmeDesign(lme(distance ~ age + Sex, data = Orthodont, 
                             random = ~ 1))
str(design)

RLRsim

Exact (Restricted) Likelihood Ratio Tests for Mixed and Additive Models

v3.1-6
GPL
Authors
Fabian Scheipl [aut, cre] (<https://orcid.org/0000-0001-8172-3603>), Ben Bolker [ctb] (<https://orcid.org/0000-0002-2127-0443>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.