Pearson_LR_tests_cum_OR_2xc: The Pearson chi-squared and likelihood ratio tests for...

View source: R/Pearson_LR_tests_cum_OR_2xc.R

Pearson_LR_tests_cum_OR_2xcR Documentation

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

Description

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

Described in Chapter 6 "The Ordered 2xc Table"

Usage

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)

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