Hi,
I would like to generate from a full dataset with an outcome variable y and a single predictor x with 2 levels (0/1) other datasets with different proportions and patterns of missing data.
My aim is to compare the y between the 2 levels of x under different proportions and types of missingness and plot how the results vary.
I would need 2x5 datasets that contain missing values that are MAR and MNAR respectively with proportion of missing at 10%, 20%,30%,40% and 50%.
Any help to set up the code would be greatly appreciated.
Thank you,
Nikos
I would like to generate from a full dataset with an outcome variable y and a single predictor x with 2 levels (0/1) other datasets with different proportions and patterns of missing data.
My aim is to compare the y between the 2 levels of x under different proportions and types of missingness and plot how the results vary.
I would need 2x5 datasets that contain missing values that are MAR and MNAR respectively with proportion of missing at 10%, 20%,30%,40% and 50%.
Any help to set up the code would be greatly appreciated.
Thank you,
Nikos
Comment