powered by
this function will automatically identify the missing pattern and flag the variable if they are not missing at random based on AUC method
autoMAR(data, aucv = 0.9, strataname = NULL, stratasize = NULL, mar_method = "glm")
dataframe or data.table
AUC cut-off value for the not missing at random variable selection
vector of stratification variables
vector of stratum sample sizes (in the order in which the strata are given in the input data set).
missing at random classification method ("glm", "rf"). Default GLM is used (GLM is run faster for high dimension data)
List output including missing variable summary and number of MAR flag variables
# NOT RUN { # Create missing at random features marobj <- autoMAR (heart, aucv = 0.9, strataname = NULL, stratasize = NULL, mar_method = "glm") # }
Run the code above in your browser using DataLab