brs | R Documentation |
This function creates a summary table from multiple bivariate regression models. If you would like to examine the bivariate associations between multiple potential confounders and an outcome variable, you may want to run multiple bivariate models and summarize the results in one table. This function helps you with that. brs: stands for bivariate regression summary.
brs(..., EXP = TRUE, EST, Out)
... |
List of the bivariate regression models separated by comma |
EXP |
Logical, whether to exponentiate the estimate or not |
EST |
What to call the estimate column (a quoted string e.g. OR, HR) |
Out |
The label for the response variable (a quoted string) |
# Example
set.seed(1234)
model1 <- glm(vs ~ gear, data = mtcars, family = binomial)
model2 <- glm(vs ~ hp, data = mtcars, family = binomial)
model3 <- glm(vs ~ drat, data = mtcars, family = binomial)
brs(model1,model2, model3,EXP = TRUE, Out = "Outcome:VS", EST = "OR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.