map {mclust} | R Documentation |
Converts a matrix in which each row sums to 1 into the nearest matrix of (0,1) indicator variables.
map(z, warn=TRUE, ...)
z |
A matrix (for example a matrix of conditional probabilities in which each row sums to 1 as produced by the E-step of the EM algorithm). |
warn |
A logical variable indicating whether or not a warning should be
issued when there are some columns of |
... |
Provided to allow lists with elements other than the arguments can
be passed in indirect or list calls with |
A integer vector with one entry for each row of z,
in which the i-th value is the column index at which the
i-th row of z
attains a maximum.
C. Fraley and A. E. Raftery (2002). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611-631.
C. Fraley and A. E. Raftery (2006). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.
emEst <- me(modelName = "VVV", data = iris[,-5], z = unmap(iris[,5])) map(emEst$z)