Skip to contents

Helper: function to run a binary analysis using glm

Usage

glm_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