Pearson_LR_test_common_effect_stratified_2x2 {contingencytables}R Documentation

The Pearson chi-squared and likelihood ratio tests of a common difference

Description

The Pearson chi-squared and likelihood ratio tests of a common difference

between probabilities (link = 'linear'), ratio of probabilities (link =

'log'), or odds ratio (link = 'logit')

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

Usage

Pearson_LR_test_common_effect_stratified_2x2(n, link = "logit")

Arguments

n

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

link

the link function ('linear', 'log', or 'logit')

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)
Pearson_LR_test_common_effect_stratified_2x2(doll_hill_1950)

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


[Package contingencytables version 3.0.0 Index]