formula function

Formula from an smn.lmm and smsn.lmm models

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, ...)

Arguments

  • x: An object inheriting from class SMN or SMSN
  • ...: Additional arguments

Returns

  • 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)
  • Maintainer: Fernanda L. Schumacher
  • License: MIT + file LICENSE
  • Last published: 2024-12-15