nObs: Number of Observations

View source: R/extractors.R

nObsR Documentation

Number of Observations

Description

Extracts the number of observations for each person from a GPPM.

Usage

nObs(gpModel)

Arguments

gpModel

object of class GPPM.

Value

Number of observations for each person as a numeric vector. The corresponding IDs are in the IDs attribute.

See Also

Other functions to extract from a GPPM: SE(), coef.GPPM(), confint.GPPM(), covFun(), fitted.GPPM(), getData(), getIntern(), logLik.GPPM(), maxNObs(), meanFun(), nPars(), nPers(), nPreds(), parEsts(), pars(), preds(), vcov.GPPM()

Examples


data("demoLGCM")
lgcm <- gppm(
  "muI+muS*t", "varI+covIS*(t+t#)+varS*t*t#+(t==t#)*sigma",
  demoLGCM, "ID", "y"
)
numberObs <- nObs(lgcm)


gppm documentation built on Aug. 25, 2025, 9:50 a.m.

Related to nObs in gppm...