Pearson_LR_tests_rxc {contingencytables} | R Documentation |
The Pearson chi-squared and likelihood ratio tests for association in rxc tables
Description
The Pearson chi-squared and likelihood ratio tests for association in rxc tables
Described in Chapter 7 "The rxc Table"
Usage
Pearson_LR_tests_rxc(n)
Arguments
n |
the observed counts (an rxc matrix) |
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
# Examples from Chapter 5 (ordered rx2 tables)
## Alcohol consumption and malformations (Mills and Graubard, 1987):
Pearson_LR_tests_rxc(mills_graubard_1987)
## Elevated troponin T levels in stroke patients (Indredavik et al., 2008):
Pearson_LR_tests_rxc(indredavik_2008)
# Examples from Chapter 6 (ordered 2xc tables)
## The Adolescent Placement Study (Fontanella et al., 2008):
Pearson_LR_tests_rxc(fontanella_2008)
## Postoperative nausea (Lydersen et al., 2012a):
Pearson_LR_tests_rxc(lydersen_2012a)
# Examples from Chapter 7 (unordered rxc tables)
## Treatment for ear infection (van Balen et al., 2003):
Pearson_LR_tests_rxc(table_7.3)
## Psychiatric diagnoses vs PA (Mangerud et al., 2004):
Pearson_LR_tests_rxc(table_7.4)
## Psychiatric diag. vs BMI (Mangerud et al., 2004):
Pearson_LR_tests_rxc(table_7.5)
[Package contingencytables version 3.0.0 Index]