This helper function creates a valid blots
object. The
blots
object is an argument to the mice
function.
The name blots
is a contraction of blocks-dots.
Through blots
, the user can specify any additional
arguments that are specifically passed down to the lowest level
imputation function.
Usage
make.blots(data, blocks = make.blocks(data))
Examples
make.predictorMatrix(nhanes)
#> age bmi hyp chl
#> age 0 1 1 1
#> bmi 1 0 1 1
#> hyp 1 1 0 1
#> chl 1 1 1 0
make.blots(nhanes, blocks = name.blocks(c("age", "hyp"), "xxx"))
#> $age
#> list()
#>
#> $hyp
#> list()
#>