Learn R Programming

VarSelLCM (version 2.1.3.2)

AIC: AIC criterion.

Description

This function gives the AIC criterion of an instance of VSLCMresults. AIC is computed according to the formula$$AIC=log-likelihood - \nu$$ where \(\nu\) denotes the number of parameters in the fitted model.

Usage

# S4 method for VSLCMresults
AIC(object)

Arguments

object

instance of VSLCMresults.

References

Akaike, H. (1974), "A new look at the statistical model identification", IEEE Transactions on Automatic Control, 19 (6): 716-723.

Examples

Run this code
# Data loading:
data(heart)

# Cluster analysis without variable selection
res <- VarSelCluster(heart[,-13], 2, vbleSelec = FALSE)

# Get the AIC value
AIC(res)

Run the code above in your browser using DataLab