Helper: function to run a binary analysis using brglm2
Usage
brglm2_analysis(data, outcome, exposure, covariates = NULL, weight_var = NULL)
Arguments
- data
data frame
- outcome
name of outcome variable
- exposure
name of exposure variable
- covariates
vector of covariate names
- weight_var
name of weight variable
Value
list of results from model for the exposure