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)

Arguments

exposure

The name of the variable corresponding to the exposure. A string.

covariates

A vector of covariates' names. A vector.

weights

The weights element of the result of the call to estimate_weights(). A weightit object.

threshold_cor

The balance threshold. A double.

Value

A named list containing the exposure name and the results of the steps described above. A list.