This helper function creates a valid where matrix. The
where matrix is an argument to the mice function.
It has the same size as data and specifies which values
are to be imputed (TRUE) or nor (FALSE).
make.where(data, keyword = c("missing", "all", "none", "observed"))
| data | A |
|---|---|
| keyword | An optional keyword, one of |
A matrix with logical
#> age bmi hyp chl #> 1 FALSE TRUE TRUE TRUE #> 2 FALSE FALSE FALSE FALSE #> 3 FALSE TRUE FALSE FALSE