ASB {MARMoT}R Documentation

Absolute standardized bias

Description

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

Usage

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

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

Value

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

Examples

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


[Package MARMoT version 0.0.4 Index]