squidgroup / squidSim

squidSim in tool for simulating data from multi-level/hierarchical models, including genetic, phylogenetic, temporal and spatial effects
Other
6 stars 0 forks source link

create function to generate missing data #5

Closed joelpick closed 2 years ago

joelpick commented 3 years ago

This would be based on the simulated phenotype, and via the three different processes MCAR, MAR and MNAR.

joelpick commented 3 years ago

Some packages already exist in R to do this, although don't think it would be hard to implement ourselves

https://cran.r-project.org/web/packages/missMethods/vignettes/Generating-missing-values.html https://rianneschouten.github.io/mice_ampute/vignette/ampute.html https://rmisstastic.netlify.app/how-to/generate/misssimul