| cellMGGMM | R Documentation |
Performs robust estimation of multivariate location and scatter within predefined groups using an iiterative EM-based algorithm.
cellMGGMM(
X,
groups,
alpha = 0.5,
hperc = 0.75,
nsteps = 100,
crit = 1e-04,
silent = TRUE,
maxcond = 100
)
X |
A numeric matrix or data frame with observations in rows and variables in columns. |
groups |
A vector indicating the group membership for each observation (length must match 'nrow(X)'). |
alpha |
A non-negative numeric value between '0.5' and '1' controlling the flexibility degree. Default is '0.5'. |
hperc |
A numeric value in '[0,1]' controlling robustness of the estimation. Default is '0.75'. |
nsteps |
Number of main iteration steps in the algorithm. Default is '100'. |
crit |
Convergence criterion for iterative updates. Default is '1e-4'. |
silent |
Logical; if 'TRUE', suppresses progress output. Default is 'FALSE'. |
maxcond |
Maximum allowed condition number for covariance matrices. Default is '100'. |
A list containing:
XThe original data matrix.
XimpThe imputed and/or scaled data matrix.
groupsVector specifying group assignments from the input.
classVector indicating the most likely group membership for each observation, as inferred by the model.
muA list of estimated location (mean) vectors for each group.
SigmaA list of estimated covariance matrices for each group.
SigmaiA list of estimated inverse covariance matrices for each group.
probsA matrix of class probabilities for each observation (rows = observations, columns = groups).
pi_groupsA matrix of estimated mixture probabilities, where rows correspond to groups and columns to distributions.
WA binary matrix indicating outlying cells (0 = outlier, 1 = no outlier).
QA matrix of penalty weights.
Sigma_regA list of estimated target (regularization) matrices.
rhoA vector of regularization factors used in the estimation.
alphaFlexibility parameter, as provided in the function input.
hpercA matrix or vector indicating the percentage of outlying cells per variable and group, based on input.
nstepsThe number of iteration steps taken until convergence.
objvalsThe values of the objective function across the iteration steps.
Puchhammer, P., Wilms, I., & Filzmoser, P. (2025). A smooth multi-group Gaussian Mixture Model for cellwise robust covariance estimation. ArXiv preprint \Sexpr[results=rd]{tools:::Rd_expr_doi("10.48550/arXiv.2504.02547")}.
residuals_mggmm
data("weatherAUT2021")
cut_lon = c(min(weatherAUT2021$lon)-0.2, 12, 16, max(weatherAUT2021$lon) + 0.2)
cut_lat = c(min(weatherAUT2021$lat)-0.2, 48, max(weatherAUT2021$lat) + 0.2)
groups = groups_gridbased(weatherAUT2021$lon, weatherAUT2021$lat, cut_lon, cut_lat)
N = length(unique(groups))
model = cellMGGMM(X = weatherAUT2021[, c("p", "s", "vv", "t", "rsum", "rel")],
groups = groups,
alpha = 0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.