extractAIC.ocm: Extract AIC from a fitted Continuous Ordinal Model

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ocm.methods.R

Description

Extracts the AIC for a fitted ocm object

Usage

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

Arguments

fit

ocm 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 to be passed to methods

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.

Value

A numeric vector of length 2, with first and second elements giving

edf

the “equivalent degrees of freedom” for the fitted model fit

AIC

the generalized AIC of ocm object fit

Author(s)

Maurizio Manuguerra, Gillian Heller

References

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

See Also

ocm

Examples

1
2
3
4
5
## Not run: 
fit.overall  <- ocm(overall  ~ cycleno + age + bsa + treatment, data=ANZ0001.sub, scale=c(0,100))
extractAIC(fit.overall)

## End(Not run)

ordinalCont documentation built on Dec. 3, 2020, 1:06 a.m.