formula: Formula from an smn.lmm and smsn.lmm models

formulaR Documentation

Formula from an smn.lmm and smsn.lmm models

Description

It returns the formula used for both fixed and random terms of the linear mixed model represented by object.

Usage

## S3 method for class 'SMN'
formula(x, ...)
## S3 method for class 'SMSN'
formula(x, ...)

Arguments

x

An object inheriting from class SMN or SMSN

...

Additional arguments

Value

formFixed

Fixed effects formula

formRandom

Random effects formula

groupVar

Variable identified subjects or clusters

See Also

smn.lmm, smsn.lmm, criteria

Examples

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

fernandalschumacher/lmmsmsn documentation built on Jan. 21, 2025, 1:24 a.m.