apply_function_to_imputed_data {basecamb} | R Documentation |
Apply function to dataframes in a mice object
Description
Wrapper function to apply a function on each dataframe in an imputed dataset
created with mice::mice()
.
Usage
apply_function_to_imputed_data(mice_data, fun, ...)
Arguments
mice_data |
a mids object generated by |
fun |
the function to apply to each dataframe. May only take one positional argument of type data.frame. |
... |
other arguments passed to fun() |
Value
a mids object with transformed data.
Author(s)
J. Peter Marquardt
[Package basecamb version 1.1.5 Index]