powered by
Compute the absolute standardized bias of given confounders and return some useful statistics.
ASB(data, confounders, treatment, verbose = TRUE)
A list of objects, containing the ASB matrix and some summary statistics.
A dataframe or equivalent.
A vector with the column names of the confounders to balance by.
A string with the column name of the treatment variable.
Set to FALSE to suppress any console output. Default is TRUE
ASB(data = MARMoT_data, confounders = c("race", "age"), treatment = "hospital")
Run the code above in your browser using DataLab