Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

AIC.fitsimts

Akaike's Information Criterion


Description

This function calculates AIC, BIC or HQ for a fitsimts object. This function currently only supports models estimated by the MLE.

Usage

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

Arguments

object

A fitsimts object.

k

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

...

Optionally more fitted model objects.

Value

AIC, BIC or HQ

Author(s)

Stéphane Guerrier

Examples

set.seed(1)
n = 300
Xt = gen_gts(n, AR(phi = c(0, 0, 0.8), sigma2 = 1))
mod = estimate(AR(3), Xt)

# AIC
AIC(mod)

# BIC
AIC(mod, k = log(n))

# HQ
AIC(mod, k = 2*log(log(n)))

simts

Time Series Analysis Tools

v0.1.1
AGPL-3 | file LICENSE
Authors
Stéphane Guerrier [aut, cre, cph], James Balamuta [aut, cph], Roberto Molinari [aut, cph], Justin Lee [aut], Yuming Zhang [aut], Wenchao Yang [ctb], Nathanael Claussen [ctb], Yunxiang Zhang [ctb], Christian Gunning [cph], Romain Francois [cph], Ross Ihaka [cph], R Core Team [cph]
Initial release
2019-07-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.