t_test: t_test

Description Usage Arguments Details Value

Description

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.

Usage

1
t_test(dt, covariates, tx = NULL, tx_cat = NULL)

Arguments

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.

Details

The t-tests are run comparing one reference category of the continuous variable against the remaining categories. By default the continuous variable will be

Value

List of objects containing mean_table, t_table, and obs


williazo/gps.continuousnav documentation built on May 8, 2019, 6:57 p.m.