| logLik.GPPM | R Documentation |
Compute the log-likelihood for a GPPM at the maximum likelihood parameter values.
## S3 method for class 'GPPM'
logLik(object, ...)
object |
object of class GPPM. Must be fitted, that is, a result from |
... |
additional arguments (currently not used). |
Returns an object of class logLik. Attributes are: "df" (degrees of freedom; number of estimated parameters in the model) and nobs (number of persons in the model)
Other functions to extract from a GPPM:
SE(),
coef.GPPM(),
confint.GPPM(),
covFun(),
fitted.GPPM(),
getData(),
getIntern(),
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)
ll <- logLik(lgcmFit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.