cv1EMtrain: Select discriminant models using cross validation
Description
Leave-one-out cross validation given a dataset and labels for selected models.
Usage
cv1EMtrain(data, labels, modelNames=NULL)
Arguments
data
A numeric vector or matrix of observations.
labels
Labels for each element or row in the dataset.
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 the crossvalidated error rate
for the dataset and labels corresponding to each model.
References
C. Fraley, A. E. Raftery, T. B. Murphy and L. Scrucca (2012).
mclust Version 4 for R: Normal Mixture Modeling for Model-Based
Clustering, Classification, and Density Estimation.
Technical Report No. 597, Department of Statistics, University of Washington.