Learn R Programming

RLRsim (version 2.1-2)

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
fitted lme- or mer-Object

Value

  • a list with components
    • Vrestimated covariance of the random effects divided by the estimated variance of the residuals
    • Xdesign of the fixed effects
    • Zdesign of the random effects
    • sigmasqvariance of the residuals
    • lambdaratios of the variances of the random effects and the variance of the residuals
    • yresponse variable

Examples

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

Run the code above in your browser using DataLab