% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlmodel-utils.R
\name{AIC.mlmodel}
\alias{AIC.mlmodel}
\alias{AIC.summary.mlmodel}
\title{Extract AIC from mlmodel objects}
\usage{
\method{AIC}{mlmodel}(object, ..., k = 2)

\method{AIC}{summary.mlmodel}(object, ..., k = 2)
}
\arguments{
\item{object}{An object of class \code{"mlmodel"} or \code{"summary.mlmodel"}.}

\item{...}{Further arguments passed to methods.}

\item{k}{Numeric. The penalty per parameter. Default is \code{k = 2}
(standard AIC). See \code{\link[stats:AIC]{stats::AIC()}} for details.}
}
\value{
A numeric value with the AIC.
}
\description{
Extract AIC from mlmodel objects
}
\details{
For \code{mlmodel} objects, AIC is computed as \code{-2 * logLik(object) + k * npar}.

For \code{summary.mlmodel} objects, the pre-computed AIC (with \code{k = 2}) is
returned; the \code{k} argument is accepted for compatibility but ignored.
}
