Learn R Programming

hydroState (version 0.2.0.0)

get.AIC: Get AIC

Description

get.AIC retrieves Akaike information criteria from a fitted hydroState model object or all models.

Usage

get.AIC(model)

Value

AIC value of a single model or a list variable of AIC values for al models

Arguments

model

fitted hydroState model object.

Details

get.AIC

The AIC is the negative log-likelihood of the model plus a penalty for model parameters. This function can be performed on a single model or a selection of models to find the lowest AIC of the set.

Examples

Run this code
# Load fitted model
data(model.annual.fitted.221201)

## AIC of a single model
get.AIC(model.annual.fitted.221201)

## Lowest AIC of a model set
get.AIC(all.models.annual.fitted.407211)

Run the code above in your browser using DataLab