powered by
This function will automatically identify the missing patterns and flag the variables if they are not missing at random based on the AUC method
autoMAR( data, aucv = 0.9, strataname = NULL, stratasize = NULL, mar_method = "glm" )
list output including missing variable summary and number of MAR flag variables
[data.frame | Required] dataframe or data.table
[integer | Optional] auc cut-off value for the not missing at random variable selection
[text | Optional] vector of stratification variables
[integer | Optional] vector of stratum sample sizes (in the order in which the strata are given in the input dataset).
[text | Optional] missing at random classification method ("glm", "rf"). Default GLM is used (GLM runs faster for high dimensional data)
# 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