compareSingleBinary: Compare a single variable across two groups

View source: R/BMisc.R

compareSingleBinaryR Documentation

Compare a single variable across two groups

Description

compareBinary takes in a variable e.g. union and runs bivariate regression of x on treatment (for summary statistics)

Usage

compareSingleBinary(
  x,
  on,
  dta,
  w = rep(1, nrow(dta)),
  report = c("diff", "levels", "both")
)

Arguments

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

Value

matrix of results


bcallaway11/BMisc documentation built on March 13, 2024, 1:39 a.m.