Learn R Programming

mclust (version 3.4.7)

bicEMtrain: Select models in discriminant analysis using BIC

Description

Computes the BIC given a dataset and labels for selected models.

Usage

bicEMtrain(data, labels, modelNames=NULL)

Arguments

data
A numeric vector or matrix of observations.
labels
Labels for each element or row in the data.
modelNames
Vector of model names that should be tested. The default is to select all available model names.

Value

  • Returns a vector where each element is the BIC for the dataset and labels corresponding to each model.

References

C. Fraley and A. E. Raftery (2006, revised 2010). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.

See Also

cv1EMtrain

Examples

Run this code
even <- seq(from=2, to=nrow(chickwts), by=2)
round(bicEMtrain(chickwts[even,1], labels=chickwts[even,2]), 1)

Run the code above in your browser using DataLab