# Create 10% MCAR missings
result <- create_diagnostic_missings(
x = iris[,1:4],
Prob = 0.1,
mnarity = 0
)
# Create 20% missings with 50% MNAR targeting low values
result <- create_diagnostic_missings(
x = iris[,1:4],
Prob = 0.2,
mnarity = 0.5,
lowOnly = TRUE
)
Run the code above in your browser using DataLab