Learn R Programming

MultiNMix (version 0.1.0)

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

Description

Computes the Bayesian Information Criterion (BIC) for an object of class "MNM". BIC is a metric used for model comparison, accounting for goodness of fit and the size of the dataset.

The formula for BIC is: $$BIC = -2 \cdot \log L + \log(n) \cdot k$$ where:

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

  • \(n\) is the number of observations in the dataset.

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

Usage

# S4 method for MNM
BIC(object)

Value

A numeric value representing the BIC of the fitted model.

Arguments

object

An object of class "MNM".