The Pearson chi-squared and likelihood ratio tests for cumulative ORs in 2xc tables

Described in Chapter 6 "The Ordered 2xc Table"

Pearson_LR_tests_cum_OR_2xc(n, direction = "decreasing")

Arguments

n

the observed counts (a 2xc matrix)

direction

the direction of column probabilities ("increasing" or "decreasing")

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

# Postoperative nausea (Lydersen et al., 2012a)
Pearson_LR_tests_cum_OR_2xc(lydersen_2012a)
#> Pearson chi-squared test: T =  3.813,  P = 0.07223
#> Likelihood ratio test:    T =  3.914,  P = 0.06856