unadjusted_ors | R Documentation |
Given a vector of variable names, and outcome variable, and a data frame, this function will produce the unadjusted odds ratios and model output by using the lr_model_output function and running each variable independently against the outcome
unadjusted_ors(vars, outcome, x, digs = 3, staror = TRUE, starpval = TRUE)
vars |
the vector of variable names to use for piecemeal comparison to the outcome variable |
outcome |
the outcome variable to use in the unadjusted models. note, this should be in quotes (e.g. "outcome1") |
x |
the dataframe containing the outcome and covariate variables |
digs |
option passed to the lr_model_output function. The number of digits to round the values to. default is 3 |
staror |
option passed to the lr_model_output function. Boolean indicating whether to apply star characters to odds ratios. default is TRUE |
starpval |
option passed to the lr_model_output function. Boolean indicating whether to apply star characters to p values. default is TRUE |
unadjusted_ors_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.