extract.lmeDesign {RLRsim}R Documentation

Extract the Design of a linear mixed model

Description

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

Usage

extract.lmeDesign(m)
extract.lmerDesign(m)

Arguments

m fitted lme- or lmer-Object

Value

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

Note

extract.lmeDesign is based on mgcv::extract.lme.cov by Simon Wood

Author(s)

Fabian Scheipl

Examples

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

[Package RLRsim version 2.0-2 Index]