explore_balance.Rd
Given a dataframe, this function performs the following steps:
Generate balance statistics on covariates in relation to a exposure variable, using the bal.tab function.
Generate plots displaying distributional balance between exposure and covariates, using the bal.plot function.
Generate a Love plot displaying covariate balance before and after adjusting, using the love.plot function.
explore_balance(exposure, type_exposure, covariates, weights, threshold_cor)
The name of the variable corresponding to the exposure. A string.
A vector of covariates' names. A vector.
The weights
element of the result of the call
to estimate_weights()
. A weightit object.
The balance threshold. A double.
A named list containing the exposure name and the results of the steps described above. A list.