nimp | R Documentation |
Calculates the number of cells within a block for which imputation is requested.
nimp(where, blocks = make.blocks(where))
where |
A data frame or matrix with logicals of the same dimensions
as |
blocks |
List of vectors with variable names per block. List elements
may be named to identify blocks. Variables within a block are
imputed by a multivariate imputation method
(see |
A numeric vector of length length(blocks)
containing
the number of cells that need to be imputed within a block.
mice
where <- is.na(nhanes)
# standard FCS
nimp(where)
# user-defined blocks
nimp(where, blocks = name.blocks(list(c("bmi", "hyp"), "age", "chl")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.