Multiple imputation of covariates for the propensity score model using Hmisc::impute.transcan(). The model used for multiple imputation must be fit with Hmisc::aregImpute().

multi_impute(object, data, id = "patient_id", ...)

Arguments

object

An Hmisc::aregImpute object.

data

The dataset that will be multiply imputed.

id

Name of the variable in data uniquely identifying each row. This is added as a column to the output.

Value

An "stacked" dplyr::tibble containing all of the multiply imputed datasets row binded together. A column imp identifies the imputation number.