logLik.GPPM: Log-Likelihood

Description Usage Arguments Value See Also Examples

Description

Compute the log-likelihood for a GPPM at the maximum likelihood parameter values.

Usage

1
2
## S3 method for class 'GPPM'
logLik(object, ...)

Arguments

object

object of class GPPM. Must be fitted, that is, a result from fit.GPPM.

...

additional arguments (currently not used).

Value

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)

See Also

Other functions to extract from a GPPM: SE, coef.GPPM, confint.GPPM, covf, datas, fitted.GPPM, getIntern, maxnObs, meanf, nObs, nPars, nPers, nPreds, parEsts, pars, preds, vcov.GPPM

Examples

1
2
3
4
5
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)

karchjd/gppm documentation built on May 27, 2019, 11:49 p.m.