Description Usage Arguments Value
View source: R/logistic_regression.r
A function used to generate multiple result table for univariate logistic
regression model with y ~ x
. For each specified y_names
, a
result table is computed, including all x_names
variables.
1 2 3 4 5 6 7 8 9 10 | logistic_univariate(
data,
y_names,
x_names,
twobytwo = TRUE,
formula = "(y ~ x)",
collapse = FALSE,
ref_label = "1",
digits = 2
)
|
data |
A dataframe including all the variables needed in all the models |
y_names |
Vector. Name(s) of response variable(s) |
x_names |
Vector. Name(s) of predictor variable(s) |
twobytwo |
Logical. Either to include the two by two table for each
variable. Default is |
formula |
Formula for logistic regression to customize. Default is
|
collapse |
|
ref_label |
Character. Set the label for reference estimate. |
digits |
Numeric. Number of digits to display. |
The returned value is a list of length y_names
, which consists
of a dataframe having the univariate logistic regressions of the
x_names
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.