Learn R Programming

ordinalCont (version 0.4)

extractAIC.ocmm: Extract AIC from a fitted Continuous Ordinal Mixed Model

Description

Extracts the AIC for a fitted ocmm object

Usage

## S3 method for class 'ocmm':
extractAIC(fit, scale = 0, k = 2, ...)

Arguments

fit
ocmm object
scale
parameter currently not used. For compatibility with general extractAIC method.
k
`weight' of the equivalent degrees of freedom (=: edf) in the AIC formula. Defaults to 2.
...
further arguments (currently unused)

Value

  • A numeric vector of length 2, with first and second elements giving
  • edfthe ``equivalent degrees of freedom'' for the fitted model fit
  • AICthe generalized AIC of ocmm object fit

Details

The generalized AIC is computed: $$-2\ell +k\cdot edf$$ where $\ell$ is the log likelihood, k=2 gives the AIC, and k=log(n) gives the BIC.

References

Akaike, H (1983). Information measures and model selection, Bulletin of the International Statistical Institute, 50:277-290.

See Also

ocmm, extractAIC.ocm

Examples

Run this code
fit.overall.rnd  <- ocmm(overall  ~ cycleno + age + bsa + treatment + (1|randno), data=ANZ0001)
extractAIC(fit.overall.rnd)

Run the code above in your browser using DataLab