View source: R/mainfunctions.R
nobs | R Documentation |
Extract the total number of observations from a model fit (considering all repeated measurements from all subjects or clusters).
## S3 method for class 'SMN'
nobs(object, ...)
## S3 method for class 'SMSN'
nobs(object, ...)
object |
An object inheriting from class |
... |
Additional arguments. |
A single integer, expected to be equal to nrow(data)
.
smn.lmm
,
smsn.lmm
,
criteria
fm1 = smn.lmm(distance ~ age+Sex, data=nlme::Orthodont, groupVar="Subject")
nobs(fm1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.