Check Weighted Covariate Balance Using Absolute Approach
Check Weighted Covariate Balance Using Absolute Approach
Checks covariate balance based on absolute weighted correlations for given data sets.
absolute_weighted_corr_fun(w, vw, c)
Arguments
w: A vector of observed continuous exposure variable.
vw: A vector of weights.
c: A data.table of observed covariates variable.
Returns
The function returns a list saved the measure related to covariate balance absolute_corr: the absolute correlations for each pre-exposure covairates; mean_absolute_corr: the average absolute correlations for all pre-exposure covairates.