View source: R/the_1xc_table_tests.R
the_1xc_table_tests | R Documentation |
The 1xc table tests
the_1xc_table_tests(n, pi0, chacko.test = FALSE)
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 |
NULL. This function should be called for its printed output
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.