Description Usage Arguments Value Examples
View source: R/univ_analysis.R
For each individual variable in the glow dataset. For categorical variables, a contingency table analysis of the outcome vs the 𝑘 level of the independent variable will be conducted. For continuous variables, we will fit univariable logistic regression modes. From the results of the univariable logistic regression, we will identify candidate variables for the first multivariable model, any variable whose univariable test has a p-value < 0.25 will be considered as a candidate variable.
1 | univ_analysis(data, p_threshold = 0.25)
|
data |
A data frame. |
p_threshold |
Numeric variable between 0 and 1. |
A list with the significant numeric variables and contingency tables for categorical variables.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.