nPers | R Documentation |
Extracts the number of persons from a GPPM.
nPers(gpModel)
gpModel |
object of class GPPM. |
Number of persons as a numeric.
Other functions to extract from a GPPM:
SE()
,
coef.GPPM()
,
confint.GPPM()
,
covFun()
,
fitted.GPPM()
,
getData()
,
getIntern()
,
logLik.GPPM()
,
maxNObs()
,
meanFun()
,
nObs()
,
nPars()
,
nPreds()
,
parEsts()
,
pars()
,
preds()
,
vcov.GPPM()
data("demoLGCM")
lgcm <- gppm(
"muI+muS*t", "varI+covIS*(t+t#)+varS*t*t#+(t==t#)*sigma",
demoLGCM, "ID", "y"
)
numberPersons <- nPers(lgcm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.