trajeRAIC: Akaike Information Criterion (AIC) for a Trajectory Object

View source: R/trajeRmodelSelection.R

trajeRAICR Documentation

Akaike Information Criterion (AIC) for a Trajectory Object

Description

Calculates the Akaike Information Criterion (AIC) for a model fitted by 'trajeR'.

Usage

trajeRAIC(sol)

Arguments

sol

A trajectory object returned by the 'trajeR' function.

Value

A numeric value representing the AIC.

Examples

data <- read.csv(system.file("extdata", "CNORM2gr.csv", package = "trajeR"))
data <- as.matrix(data)
sol <- trajeR(Y = data[, 2:6], A = data[, 7:11], degre = c(2, 2), Model = "CNORM", Method = "EM")
trajeRAIC(sol)

trajeR documentation built on Aug. 4, 2026, 1:09 a.m.