Function for Odds Ratio Table and Plot.
Usage
oddsratio(
data,
explanatory,
outcome,
outcomeLevel,
showNomogram = FALSE,
showSummaries = FALSE,
showExplanations = 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.
- showSummaries
Display natural language interpretations of the results to help understand the clinical significance of odds ratios, confidence intervals, and diagnostic metrics.
- showExplanations
Display educational explanations for each analysis type to help interpret odds ratios, risk ratios, diagnostic test performance, ROC analysis, and likelihood ratios.
Value
A results object containing:
results$todo | a html | ||||
results$oddsRatioHeading | a preformatted | ||||
results$text | a html | ||||
results$text2 | a html | ||||
results$oddsRatioSummaryHeading | a preformatted | ||||
results$oddsRatioSummary | a html | ||||
results$oddsRatioPlotHeading | a preformatted | ||||
results$plot | an image | ||||
results$oddsRatioExplanationHeading | a preformatted | ||||
results$oddsRatioExplanation | a html | ||||
results$riskMeasuresExplanation | a html | ||||
results$diagnosticTestExplanation | a html | ||||
results$nomogramHeading | a preformatted | ||||
results$plot_nomogram | an image | ||||
results$nomogram | a html | ||||
results$nomogramSummaryHeading | a preformatted | ||||
results$nomogramSummary | a html | ||||
results$nomogramExplanationHeading | a preformatted | ||||
results$nomogramAnalysisExplanation | a html |