50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

MARMoT (version 0.0.4)

ASB: Absolute standardized bias

Description

Compute the absolute standardized bias of given confounders and return some useful statistics.

Usage

ASB(data, confounders, treatment, verbose = TRUE)

Value

A list of objects, containing the ASB matrix and some summary statistics.

Arguments

data

A dataframe or equivalent.

confounders

A vector with the column names of the confounders to balance by.

treatment

A string with the column name of the treatment variable.

verbose

Set to FALSE to suppress any console output. Default is TRUE

Examples

Run this code
ASB(data = MARMoT_data, confounders = c("race", "age"), treatment = "hospital")

Run the code above in your browser using DataLab