apply_function_to_imputed_data {basecamb} | R Documentation |
Wrapper function to apply a function on each dataframe in an imputed dataset
created with mice::mice()
.
apply_function_to_imputed_data(mice_data, fun, ...)
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() |
a mids object with transformed data.
J. Peter Marquardt