compute_uni_variable_table_ordinal {AutoScore} | R Documentation |
Perform univariable analysis and generate the result table with odd ratios from proportional odds models.
compute_uni_variable_table_ordinal(df, link = "logit", n_digits = 3)
df |
data frame after checking |
link |
The link function used to model ordinal outcomes. Default is
|
n_digits |
Number of digits to print for OR or exponentiated coefficients (Default:3). |
result of univariate analysis
data("sample_data_ordinal")
# Using just a few variables to demonstrate usage:
uni_table<-compute_uni_variable_table_ordinal(sample_data_ordinal[, 1:3])