RBG_test_and_CI_stratified_2x2: The RBG test and CI for a common odds ratio

View source: R/RBG_test_and_CI_stratified_2x2.R

RBG_test_and_CI_stratified_2x2R Documentation

The RBG test and CI for a common odds ratio

Description

The RBG test and CI for a common odds ratio

(A Wald-type test and CI based on the Mantel-Haenszel estimate)

Described in Chapter 10 "Stratified 2x2 Tables and Meta-Analysis"

Usage

RBG_test_and_CI_stratified_2x2(n, alpha = 0.05)

Arguments

n

the observed table (a 2x2xk matrix, where k is the number of strata)

alpha

the nominal level, e.g. 0.05 for 95# CIs

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

# Smoking and lung cancer (Doll and Hill, 1950)
RBG_test_and_CI_stratified_2x2(doll_hill_1950)

# Prophylactice use of Lidocaine in myocardial infarction (Hine et al., 1989)
RBG_test_and_CI_stratified_2x2(hine_1989)


ocbe-uio/contingencytables documentation built on Aug. 30, 2024, 7:16 a.m.