Hi,

I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 observations.

I want to make x1 missing completely at random (MCAR) with a probability of 0.5

Any help with the code would be greatly appreciated.

Thank you,
Claire