View source: R/sensitivity_analyses.R
sim_missing | R Documentation |
Randomly replace data elements with NAs, or remove whole vertebrae or variables
sim_missing(data, missing, type, Xvar)
data |
data matrix |
missing |
proportion missing data, from zero to one |
type |
"elem", "vert", "var" randomly replace elements, whole rows, or whole columns |
Xvar |
Independent variable |
If vertebrae are removed Xvar is corrected
data
xvar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.