fortify: add information to data based on a fitted model

Description Usage Arguments Details Examples

Description

fortify adds information to data based on a fitted model; getData retrieves data as specified in the data argument

Usage

1
2
3
4
  fortify.merMod(model, data = getData(model),
    ...)
## S3 method for class 'merMod'
getData(object)

Arguments

model

fitted model

object

fitted model

data

original data set, if needed

...

additional arguments

Details

Examples

1
2
  fm1 <- lmer(Reaction~Days+(1|Subject),sleepstudy)
  names(fortify.merMod(fm1))

Example output

Loading required package: Matrix
[1] "Reaction" "Days"     "Subject"  ".fitted"  ".resid"   ".scresid"

lme4 documentation built on June 22, 2021, 9:07 a.m.