Learn R Programming

skewlmm (version 1.1.3)

ranef: Extract random effects from smsn.lmm, smn.lmm and smn.clmm objects

Description

It extracts random effects from smsn.lmm, smn.lmm and smn.clmm objects.

Usage

# S3 method for SMN
ranef(object, ...)
# S3 method for SMSN
ranef(object, ...)
# S3 method for SMNclmm
ranef(object, ...)

Value

Matrix of estimated random effects.

Arguments

object

An object inheriting from class SMN, SMSN, or SMNclmm, representing a fitted scale mixture skew-normal linear mixed model.

...

Additional arguments

Author

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

References

Schumacher, F. L., Matos, L. A., and Lachos, V. H. (2025). "skewlmm: An R Package for Fitting Skewed and Heavy-Tailed Linear Mixed Models." Journal of Statistical Software, 115(7), 1--32.

Schumacher, F. L., Lachos, V. H., and Matos, L. A. (2021). Scale mixture of skew-normal linear mixed models with within-subject serial dependence. Statistics in Medicine 40(7), 1790-1810.

See Also

smsn.lmm, smn.lmm, smn.clmm, fitted.SMSN, fitted.SMN, fitted.SMNclmm

Examples

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

Run the code above in your browser using DataLab