the_1xc_table_tests: The 1xc table tests

View source: R/the_1xc_table_tests.R

the_1xc_table_testsR Documentation

The 1xc table tests

Description

The 1xc table tests

Usage

the_1xc_table_tests(n, pi0, chacko.test = FALSE)

Arguments

n

the observed counts (a 1xc vector, where c is the number of categories)

pi0

given probabilities (a 1xc vector)

chacko.test

if TRUE, only performs the Chacko test

Value

NULL. This function should be called for its printed output

Examples

# Genotype counts for SNP rs 6498169 in RA patients
the_1xc_table_tests(n = snp6498169$complete$n, pi0 = snp6498169$complete$pi0)
# subset of 10 patients
the_1xc_table_tests(n = snp6498169$subset$n, pi0 = snp6498169$subset$pi0)
# Example for the Chacko test: Hypothetical experiment
the_1xc_table_tests(n = hypothetical, pi0 = c(0.402, 0.479, 0.119), TRUE)

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