| NAControl {simFrame} | R Documentation |
Create objects of class "NAControl".
NAControl(...)
... |
arguments passed to new("NAControl", ...). |
An object of class "NAControl".
Andreas Alfons, alfons@statistik.tuwien.ac.at
data(eusilc)
sam <- draw(eusilc[, c("id", "age", "eqIncome")], size = 25)
## missing completely at random
mcarc <- NAControl(target = "eqIncome", NArate = 0.2)
setNA(sam, mcarc)
## missing at random
marc <- NAControl(target = "eqIncome", NArate = 0.2, aux = "age")
setNA(sam, marc)
## missing not at random
mnarc <- NAControl(target = "eqIncome",
NArate = 0.2, aux = "eqIncome")
setNA(sam, mnarc)