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

AIC.GNARfit

Akaike's Information Criterion for GNAR models


Description

Function calculating AIC for GNARfit models.

Usage

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

Arguments

object

a GNARfit object, output from a GNARfit call.

...

additional arguments, not used here.

k

the penalty for the criterion, the default k = 2 is the standard AIC.

Details

Smaller AIC values correspond to better fit.

Value

A numeric value corresponding to the AIC (or other criterion if k is set to something other than 2).

Examples

#AIC for two different GNAR fits for fiveNet data
#GNAR(2,[1,1])
AIC(GNARfit())
#GNAR(2,[1,0])
AIC(GNARfit(betaOrder=c(1,0)))

GNAR

Methods for Fitting Network Time Series Models

v1.1.1
GPL-2
Authors
Kathryn Leeming [aut], Guy Nason [aut], Matt Nunes [aut, cre], Marina Knight [ctb]
Initial release
2020-11-10

We don't support your browser anymore

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