R/Pearson_chi_squared_test_1xc.R
Pearson_chi_squared_test_1xc.Rd
The Pearson chi-squared test for multinomial probabilities
Described in Chapter 3 "The 1xc Table and the Multinomial Distribution"
Pearson_chi_squared_test_1xc(n, pi0)
An object of the contingencytables_result class,
basically a subclass of base::list()
. Use the utils::str()
function
to see the specific elements returned.
# Genotype counts for SNP rs 6498169 in RA patients
Pearson_chi_squared_test_1xc(n = snp6498169$complete$n, pi0 = snp6498169$complete$pi0)
#> The Pearson chi-squared test: P = 0.00321, T = 11.481 (df = 2)
# subset of 10 patients
Pearson_chi_squared_test_1xc(n = snp6498169$subset$n, pi0 = snp6498169$subset$pi0)
#> The Pearson chi-squared test: P = 0.03461, T = 6.727 (df = 2)