mdMCARtest Bootstrap test for change in Mahalanobis distances under MCAR
This function implements a parametric bootstrap test based on the change in Mahalanobis distances for the units without missing values when location and scatter are estimated:
1) using only the complete rows;
2) using all rows through EM/TEM in the presence of missing values.
The bootstrap null hypothesis is that the observed perturbation is compatible with MCAR. The null distribution is generated from a Gaussian model fitted on the complete rows and then the observed missingness mask is imposed on the generated data.
Example 2: Test with trimming.out
=mdMCARtest(Y,
Name, Value)
Little, R. J. A., & Rubin, D. B. (2019). Statistical Analysis with Missing Data (3rd ed.). Hoboken, NJ: John Wiley & Sons.
Templ, M. (2023). Visualization and Imputation of Missing Values: With Applications in R. Cham, Switzerland: Springer Nature.