compute_uni_variable_table_ordinal {AutoScore} | R Documentation |
AutoScore-Ordinal function: Univariable Analysis
Description
Perform univariable analysis and generate the result table with odd ratios from proportional odds models.
Usage
compute_uni_variable_table_ordinal(df, link = "logit", n_digits = 3)
Arguments
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). |
Value
result of univariate analysis
Examples
data("sample_data_ordinal")
# Using just a few variables to demonstrate usage:
uni_table<-compute_uni_variable_table_ordinal(sample_data_ordinal[, 1:3])
[Package AutoScore version 1.0.0 Index]