`distlat' is used to address the label switching problem by minimizing the distance between the classification probabilities and the latent component label, which is the label used by the user to generate the sample (Yao, 2015). The function supports both one-dimensional (with equal variances or unequal variances) and multi-dimensional data (with equal variances).
distlat(est, lat)
The estimation results adjusted to account for potential label switching problems are returned, as a list containing the following elements:
C by p matrix of estimated component means.
C-dimensional vector of estimated component standard deviations (for univariate data) or p by p matrix of estimated component variance (for multivariate data).
C-dimensional vector of estimated mixing proportions.
a list with four elements representing the estimated mixture model,
which can be obtained using the mixnorm
function. When specified,
it has the form of list(mu, sigma, pi, p)
, where
mu
is a C by p matrix of estimated component means where p is the dimension of data
and C is the number of mixture components,
sigma
is a p by p matrix of estimated common standard deviation for all components
(when the data is multi-dimensional) or a C-dimensional vector of estimated component
standard deviations (when the data is one-dimensional),
pi
is a C-dimensional vector of mixing proportions, and
p
is a C by n matrix of the classification probabilities,
where the (i, j)th element corresponds to the probability of the jth observation
belonging to the ith component.
a C by n zero-one matrix representing the latent component labels for all observations, where C is the number of components in the mixture model and n is the number of observations. If the (i, j)th cell is 1, it indicates that the jth observation belongs to the ith component.
Yao, W. (2015). Label switching and its solutions for frequentist mixture models. Journal of Statistical Computation and Simulation, 85(5), 1000-1012.
complh
, mixnorm
# See examples for the `complh' function.
Run the code above in your browser using DataLab