Legacy version of `compare_binary`, please use that function instead. This function will eventually be deleted.
compareBinary(
x,
on,
dta,
w = rep(1, nrow(dta)),
report = c("diff", "levels", "both")
)
variables to run regression on
binary variable
the data to use
weights
which type of report to make; diff is the difference between the two variables by group