apply_function_to_imputed_data: Apply function to dataframes in a mice object

View source: R/apply_function_to_imputed_data.R

apply_function_to_imputed_dataR 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 mice::mice().

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


basecamb documentation built on May 29, 2024, 11:03 a.m.