univ_analysis: Univariate analysis

Description Usage Arguments Value Examples

View source: R/univ_analysis.R

Description

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.

Usage

1
univ_analysis(data, p_threshold = 0.25)

Arguments

data

A data frame.

p_threshold

Numeric variable between 0 and 1.

Value

A list with the significant numeric variables and contingency tables for categorical variables.

Examples

1

Surajdahal3/SurProj documentation built on Dec. 18, 2021, 3:04 p.m.