Formula from an smn.lmm and smsn.lmm models
It returns the formula used for both fixed and random terms of the linear mixed model represented by object.
## S3 method for class 'SMN' formula(x, ...) ## S3 method for class 'SMSN' formula(x, ...)
x
: An object inheriting from class SMN
or SMSN
...
: Additional argumentsformFixed: Fixed effects formula
formRandom: Random effects formula
groupVar: Variable identified subjects or clusters
smn.lmm
, smsn.lmm
, criteria
fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject") formula(fm1)
Useful links