uvlm.Rd
uvlm
takes lists of continuous and/or categorical variables, calls
lm
to run a linear regression model for each, and returns a table with
Est (SE) and p-value for each variable that is suitable for printing in a
Word R Markdown
file.
uvlm(contvars, catvars, out, dat)
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 continuous outcome variable (needs to be in quotes) |
dat | is the dataset for analysis |
Returns a dataframe. If there are warnings or errors from lm
then blank rows are returned.