compareSingleBinary | R Documentation |
compareBinary
takes in a variable e.g. union
and runs bivariate regression of x on treatment (for summary statistics)
compareSingleBinary(
x,
on,
dta,
w = rep(1, nrow(dta)),
report = c("diff", "levels", "both")
)
x |
variables to run regression on |
on |
binary variable |
dta |
the data to use |
w |
weights |
report |
which type of report to make; diff is the difference between the two variables by group |
matrix of results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.