fitted.SMNclmm {skewlmm}R Documentation

Extract smn.clmm 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 'SMNclmm'
fitted(object, ...)

Arguments

object

An object inheriting from class SMNclmm, representing a fitted scale mixture normal linear mixed model with censored responses.

...

Additional arguments.

Value

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

Author(s)

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

See Also

smn.clmm, predict.SMNclmm

Examples

nj1 = 5; m = 30
time = rep(1:nj1, times=m)
groups = as.factor(rep(1:m, each=nj1))
dat1 = rsmsn.clmm(time, groups, cbind(1,time), rep(1,m*nj1), sigma2=0.7,
                  D=0.6*diag(1), beta=c(1,2), depStruct="UNC")

fm1 = smn.clmm(dat1, formFixed=y~x, groupVar="ind", depStruct="UNC",
               ci="ci", lcl="lcl", ucl="ucl", control=lmmControl(max.iter=30))
fitted(fm1)

[Package skewlmm version 1.1.0 Index]