visualize_odds_ratios: Visualize Odds Ratios for a 2xk (where k >= 2) Contingency...

View source: R/visualize_odds_ratios.R

visualize_odds_ratiosR Documentation

Visualize Odds Ratios for a 2xk (where k >= 2) Contingency Table (internal function)

Description

This function creates a plot of odds ratios with 95 for a 2xk (where k >= 2) contingency table.

Usage

visualize_odds_ratios(
  ctable,
  reference.level = 1,
  row.level = 1,
  or.alpha = 0.05
)

Arguments

ctable

A 2xk (where k >= 2) contingency table as a matrix or data frame with row and column names.

reference.level

The index of the reference level for odds ratio calculations (default: 1). The user must select the column level to serve as the reference level.

row.level

The index of the row category to be used in odds ratio calculations (1 or 2). The user must select the row level to which the calculation of the odds ratios make reference (default: 1).

or.alpha

The significance level used for the confidence intervals (default: 0.05).

Value

A plot of odds ratios with 95


chisquare documentation built on Oct. 30, 2024, 9:11 a.m.