Skip to contents

Function for Odds Ratio Table and Plot.

Usage

oddsratio(data, explanatory, outcome, outcomeLevel, showNomogram = FALSE)

Arguments

data

The data as a data frame.

explanatory

The explanatory variables to be used in the analysis.

outcome

The outcome variable to be used in the analysis.

outcomeLevel

Specify which outcome level represents the positive case for likelihood ratio calculations. If not specified, the function will use the second level alphabetically.

showNomogram

Display an interactive nomogram for converting pre-test to post-test probabilities using likelihood ratios calculated from the data.

Value

A results object containing:

results$todoa html
results$texta html
results$text2a html
results$plotan image
results$plot_nomograman image
results$nomograma html

Examples

# \donttest{
# example will be added
# }