Learn R Programming

MultiNMix (version 0.1.0)

AIC,MNM-method: AIC Method for "MNM" Class

Description

Computes the Akaike Information Criterion (AIC) for an object of class "MNM". AIC is a metric used for model comparison, balancing goodness of fit and model complexity.

The formula for AIC is: $$AIC = -2 \cdot \log L + 2 \cdot k$$ where:

  • \(\log L\) is the log-likelihood of the model.

  • \(k\) is the number of parameters in the model.

Usage

# S4 method for MNM
AIC(object)

Value

A numeric value representing the AIC of the fitted model.

Arguments

object

An object of class "MNM".