These functions do simple and
imputation and print, summarize, and subscript
variables that have NAs filled-in with imputed values. The simple
imputation method involves filling in NAs with constants,
with a specified single-valued function of the non-NAs, or from
a sample (with replacement) from the non-NA values (this is useful
in multiple imputation).
More complex imputations can be done
transcan function, which also works with the generic methods
shown here, i.e.,
impute can take a
transcan object and use the
imputed values created by
imputed=TRUE) to fill-in NAs.
summary method summarizes all imputed values and then uses
summary method available for the variable.
The subscript method preserves attributes of the variable and subsets
the list of imputed values corresponding with how the variable was
is.imputed function is for checking if observations
1 2 3 4 5 6 7 8 9 10 11 12
a vector or an object created by
the name of a function to use in computing the (single)
imputed value from the non-NAs. The default is
an object of class
a vector with class
"impute" placed in front of existing classes.
is.imputed, a vector of logical values is returned (all
object is not of class
Department of Biostatistics
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.