Compute the AIC of a fitted carx object

Description

Return the AIC of a fitted carx object where the maximum log-likelihood is replaced by the maximum quasi-log-likelihood.

Usage

1
2
## S3 method for class 'carx'
AIC(object, ..., k = 2)

Arguments

object

a fitted carx object.

...

not used.

k

penalty multiplier for the number of parameters. Default = 2.

Value

the AIC value = -2*maximum quasi-log-likelihood+k*number of parameters

Examples

1
2
3
dat = carxSim(nObs=100,seed=0)
mdl <- carx(y~X1+X2-1,data=dat, p=2, CI.compute = FALSE)
ic = AIC(mdl)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.