Skip to contents

See balance statistics of covariance for specified variables between treatment and control groups.

Usage

print_covariance(
  .data,
  treatment,
  confounders,
  estimand = c("ATE", "ATT", "ATC")
)

Arguments

.data

dataframe

treatment

the column denoted treatment. Must be binary.

confounders

character list of column names denoting the X columns of interest

estimand

character of either ATE, ATT or ATC the causal estimand you are making inferences about

Value

tibble

Author

George Perrett

Examples

data(lalonde)
print_covariance(lalonde, 'treat', confounders = c('re78', 'age', 'educ'), estimand = 'ATE')
#> # A tibble: 3 × 2
#>   variable  `standardized difference in means`
#>   <chr>                                  <dbl>
#> 1 re78*educ                               0.29
#> 2 re78*age                                0.29
#> 3 age*educ                                0.16