uvlogit takes lists of continuous and/or categorical variables, calls glm to run a logistic regression model for each, and returns a table with OR (95 Word R Markdown file.

uvlogit(contvars, catvars, out, dat)

Arguments

contvars

is a list of the continuous variables you want in the rows e.g. list('Age')

catvars

is a list of the categorical variables you want in the rows e.g. list('Gender','Race')

out

is the binary outcome variable. Must be coded 0/1. (needs to be in quotes)

dat

is the dataset for analysis

Value

Returns a dataframe. If there are warnings or errors from glm then blank rows are returned.