nobs {skewlmm} | R Documentation |
Extract the number of observations from smn.lmm and smsn.lmm fitted models
Description
Extract the total number of observations from a model fit (considering all repeated measurements from all subjects or clusters).
Usage
## S3 method for class 'SMN'
nobs(object, ...)
## S3 method for class 'SMSN'
nobs(object, ...)
Arguments
object |
An object inheriting from class |
... |
Additional arguments. |
Value
A single integer, expected to be equal to nrow(data)
.
See Also
Examples
fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject")
nobs(fm1)
[Package skewlmm version 1.1.2 Index]