compareBinary: compareBinary
Description
compareBinary
##takes in a variable e.g. union
and runs bivariate regression of x on treatment (for summary statistics)
Usage
compareBinary(x, on, dta, w = rep(1, nrow(dta)), report = c("diff",
"levels", "both"))
Arguments
x
variables to run regression on
report
which type of report to make; diff is the difference between
the two variables by group