| fitted.GPPM | R Documentation |
A fitted GPPM implies a mean vector and a covariance matrix for each person. These are returned by this function.
## S3 method for class 'GPPM'
fitted(object, ...)
object |
object of class GPPM. Must be fitted, that is, a result from |
... |
additional arguments (currently not used). |
Returns a list structure with mean and covariances matrices. See example.
Other functions to extract from a GPPM:
SE(),
coef.GPPM(),
confint.GPPM(),
covFun(),
getData(),
getIntern(),
logLik.GPPM(),
maxNObs(),
meanFun(),
nObs(),
nPars(),
nPers(),
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"
)
lgcmFit <- fit(lgcm)
meansCovs <- fitted(lgcmFit)
person1Mean <- meansCovs$mean[[1]]
person1Cov <- meansCovs$cov[[1]]
person1ID <- meansCovs$ID[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.