Learn R Programming

lmvar (version 1.5.2)

AIC.lmvar: AIC for an object of class 'lmvar'

Description

AIC (Aikaike's 'An Information Criterion') for an object of class 'lmvar'

Usage

# S3 method for lmvar
AIC(object, ..., k = 2)

Arguments

object

Object of class 'lmvar'

...

For compatibility with AIC generic

k

Numeric, the penalty per parameter to be used. The default k = 2 is the classical AIC.

Value

the AIC of the object

Examples

Run this code
# NOT RUN {
# Let 'fit' be an object of class 'lmvar'. The classical AIC is
AIC(fit)

# To calculate the AIC with penalty-parameter k = 3 run
AIC(fit, k = 3)
# }

Run the code above in your browser using DataLab