Learn R Programming

momentuHMM (version 1.2.0)

AIC.momentuHMM: AIC

Description

Akaike information criterion of momentuHMM model(s).

Usage

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

Arguments

object

A momentuHMM object.

...

Optional additional momentuHMM objects, to compare AICs of the different models.

k

Penalty per parameter. Default: 2 ; for classical AIC.

Value

The AIC of the model(s) provided. If several models are provided, the AICs are output in ascending order.

Examples

Run this code
# NOT RUN {
# m is a momentuHMM object (as returned by fitHMM), automatically loaded with the package
m <- example$m
AIC(m)

# }

Run the code above in your browser using DataLab