Description Usage Arguments Details Value
This is a function that will test balance of the covariates with respect to a continuous treatment variable. In a non-randomized experiment, such as an observational experiment, we expect that certain covariates will be highly correlated with the treatment and potentially the outcome. We can use this function to gauge the level of imbalance in the covariates.
1 |
dt |
Data.frame object in R. This data frame must have covariates and tx_var as variable names |
covariates |
Vector of character names that specifies which covariates to test for imbalance. These variables can be numeric or categorical. |
tx |
Continuous treatment variable. |
tx_cat |
Factor vector specifying the levels of the continuous variable being investigated. |
The t-tests are run comparing one reference category of the continuous variable against the remaining categories. By default the continuous variable will be
List of objects containing mean_table
, t_table
, and obs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.