fitted.SMN: Extract smn.lmm fitted values

View source: R/mainfunctions-sim.R

fitted.SMNR Documentation

Extract smn.lmm fitted values

Description

The fitted values are obtained by adding together the population fitted values (based only on the fixed effects estimates) and the estimated contributions of the random effects to the fitted values at grouping levels.

Usage

## S3 method for class 'SMN'
fitted(object, ...)

Arguments

object

An object inheriting from class SMN, representing a fitted scale mixture normal linear mixed model.

...

Additional arguments.

Value

Vector of fitted values with length equal to nrow(data).

Author(s)

Fernanda L. Schumacher, Larissa A. Matos and Victor H. Lachos

See Also

smn.lmm, predict.SMN

Examples

fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject")
fitted(fm1)

skewlmm documentation built on July 9, 2023, 7:29 p.m.