Model-based clustering via Parsimonious Ultrametric Manly Mixture Models. Hierarchical relationships among variables within and between clusters are inspected. The grouped coordinate ascent algorithm is used for the parameter estimation. The optimal model is selected according to BIC.
puMmm(
X,
G = NULL,
m = NULL,
lambda = NULL,
normalization = NULL,
model = NULL,
modelselect = "BIC",
maxiter = 500,
tol = 1e-06,
stop = "aitken",
rndstart = 1,
initG = "ManlyMix",
initm = "ucms",
seed = 123,
parallel = FALSE
)An object of class puMmm containing the results of the optimal -according to the model selection criteria- Parsimonious Ultrametric Manly Mixture Model estimation.
call Matched call.
X Input data matrix.
G Number of components of the best model.
m Number of variable groups of the best model.
label Integer vector of dimension \(n\), taking values in \(\{1, \ldots, G\}\). It identifies the unit classification according to the maximum a posteriori of the best model.
pp Numeric vector of dimension \(G\) containing the prior probabilities for the best model.
lambda (\(G \times p\)) numeric matrix containing the component transformation vectors (by row) for the best model.
mu (\(G \times p\)) numeric matrix containing the component mean vectors (by row) for the best model.
sigma List of dimension \(G\) containing the (\(p \times p\)) numeric component extended ultrametric covariance matrices for the best model.
V List of dimension \(G\) containing the (\(p \times m\)) binary variable-group membership matrices for the best model.
Sv List of dimension \(G\) containing the (\(m \times m\)) numeric diagonal matrices of the group variances for the best model.
Sw List of dimension \(G\) containing the (\(m \times m\)) numeric diagonal matrices of the within-group covariances for the best model.
Sb List of dimension \(G\) containing the (\(m \times m\)) numeric hallow matrices of the between-group covariances for the best model.
post (\(n \times G\)) numeric matrix containing the posterior probabilities for the best model.
pm Number of parameters of the best model.
pm.cov Number of covariance parameters of the best model.
pm.free Number of free parameters of the best model (pm - (constraints on \(V\) + count.constr.SwSb + count.constr.SvSw)).
count.constr.SwSb Number of times the constraint between Sw and Sb has been turned on for the best model.
count.constr.SvSw Number of times the constraint between Sv and Sw has been turned on for the best model.
BIC BIC values for all the fitted models. If BIC is \(NA\), the model has not been computed since its structure is equal to another model, while if BIC is \(-Inf\) the solution has a number of clusters \(< G\).
bic BIC value of the best model.
loglik Log-likelihood of the best model.
loop Random start corresponding to the selected solution of the best model.
iter Number of iterations needed to estimate the best model.
model.name Character string denoting the PUGMM model name of the best model among the ones fitted.
messages Messages.
(\(n \times p\)) numeric matrix or data frame, where \(n\) and \(p\) represent the number of units and variables, respectively. Categorical variables are not allowed.
Integer (vector) specifying the number of mixture components (default: G = 1:5).
Integer (vector) specifying the number of variable groups (default: m = 1:5).
(\(G \times p\)) numeric matrix containing the initial transformation parameters for a single specified G.
Character string specifying the data transformation. If NULL, no transformation is applied to the data matrix (default). Other options are: "standard" for the standardization; "center" for centering the data; "range" for the MinMax transformation; "SVD" for the Singular Value Decomposition transformation.
Vector of character strings indicating the model names to be fitted. If NULL, all the possible models are fitted (default). See the possible models using pugmm_available_models().
Character string indicating the model selection method to be used. If "BIC", the best model is selected according to the BIC (default); if "two-step", the best model is selected according to the two-step model selection method.
Integer value specifying the maximum number of iterations of the EM algorithm (default: maxiter = 500).
Numeric value specifying the tolerance for the convergence criteria used in the EM algorithm (default: tol = 1e-6).
Character string specifying the convergence criteria. If "aitken", the Aitken acceleration-based stopping rule is used (default); if "relative", the relative log-likelihood in two sequential iterations is evaluated.
Integer value specifying the number of random starts (default: rndstart = 1).
Character string specifying the method for the initialization of the unit-component membership. If "ManlyMix", the Manly.model() function via the ManlyMix package is used (default). Other options are: "kmeans" for k-means (via RcppArmadillo); "random" for random assignment; "kmeansf" for fuzzy c-means (via the function fcm of the package ppclust).
Character string specifying the method for the initialization of the variable-group membership. If "ucms", the multivariate model to be used for obtaining the variable-group membership estimated is the same model.name used for estimating the Parsimonious Ultrametric Manly Mixture Model (default); if "random", a random assignment is performed.
Numeric value specifying the seed (default: seed = 123).
A logical value, specifying whether the models should be run in parallel.
The grouped coordinate ascent algorithm used for the estimation of PUMMMs parameters was demonstrated to be equivalent to an Expectation-Maximization (EM) algorithm in the GMM framework (Hathaway, 1986).
Cavicchia, C., Vichi, M., Zaccaria, G. (2024) Parsimonious ultrametric Gaussian mixture models. Statistics and Computing, 34, 108.
Cavicchia, C., Vichi, M., Zaccaria, G. (2022) Gaussian mixture model with an extended ultrametric covariance structure. Advances in Data Analysis and Classification, 16(2), 399-427.
Hathaway, R. (1986) Another interpretation of the EM algorithm for mixture distributions. Statistics and Probability Letters, 4(2), 53-56.
pugmm(), pugmm_available_models(), plot.pugmm()
data(Harbour_metals)
x <- scale(Harbour_metals[,4:10])
if (FALSE) {
results <- puMmm(x, G = 1:4, m = 1:7, model = NULL, modelselect = "two-step")
results$G
results$m
results$model.name
table(Harbour_metals$Species, results$label)
plot.pugmm(results, what = c("BIC", "Path Diagram"))}
Run the code above in your browser using DataLab