| imputeCellMCD | R Documentation |
Extends the cellwise MCD approach (Raymaekers & Rousseeuw 2024) to mixed continuous + categorical data. Uses MCD for robust covariance estimation of the continuous block, computes cellwise weights from conditional residuals, then imputes missing values via conditional expectations (continuous) and weighted multinomial regression (categorical). Iterates until convergence.
imputeCellMCD(
data,
maxit = 50,
eps = 0.005,
method = "tukey",
alpha = NULL,
mcd_alpha = 0.75,
hard_threshold = 0.5,
mcd_observed = "all",
init_method = "median",
uncert = "conditional",
m = 1L,
boot = FALSE,
trace = FALSE
)
data |
a |
maxit |
maximum number of iterations (default: 50). |
eps |
convergence tolerance (default: 5e-3). |
method |
weight function for cell weights: |
alpha |
tuning constant. |
mcd_alpha |
MCD concentration parameter (default: 0.75). |
hard_threshold |
numeric in |
mcd_observed |
strategy for covariance estimation:
|
init_method |
initialisation for missing values before iteration:
|
uncert |
imputation uncertainty: |
m |
number of multiple imputations (default: 1). If |
boot |
logical; intended to add bootstrap parameter uncertainty across
the |
trace |
logical; if |
A list with components:
data_imputed |
the imputed |
cellweights |
|
mu |
robust location estimate (continuous variables). |
Sigma |
robust covariance estimate (continuous variables). |
converged |
logical indicating convergence. |
iterations |
number of iterations performed. |
Multiple imputation with proper parameter-uncertainty propagation is
not yet implemented for this method (see boot). m > 1 returns
repeated imputations whose between-imputation variability comes only from
the stochastic uncertainty step (uncert) and estimator randomness,
so downstream Rubin pooling understates total variance. Treat the current
m > 1 output as approximate.
Matthias Templ
Raymaekers, J. and Rousseeuw, P.J. (2024). The cellwise minimum covariance determinant estimator. Journal of the American Statistical Association, 119(548), 2610–2621.
imputeCellIRMI, imputeCellM,
imputeCellEM
Other imputation methods:
hotdeck(),
impPCA(),
imputeCellEM(),
imputeCellIRMI(),
imputeCellM(),
imputeCellwise(),
imputeRobust(),
imputeRobustChain(),
irmi(),
kNN(),
matchImpute(),
medianSamp(),
rangerImpute(),
regressionImp(),
sampleCat(),
vimmi,
vimpute(),
xgboostImpute()
## Not run:
data(sleep, package = "VIM")
result <- imputeCellMCD(sleep)
head(result$data_imputed)
# Inspect cell weights
image(result$cellweights, main = "Cell weights")
# With pairwise robust covariance
result2 <- imputeCellMCD(sleep, mcd_observed = "pairwise", trace = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.