Description Usage Arguments Examples
View source: R/MidP_multinomial_test_1xc.R
The mid-P multinomial test for multinomial probabilities
Described in Chapter 3 "The 1xc Table and the Multinomial Distribution"
1 | MidP_multinomial_test_1xc(n, pi0, printresults = TRUE)
|
n |
the observed counts (a 1xc vector, where c is the number of categories) |
pi0 |
given probabilities (a 1xc vector) |
printresults |
display results (F = no, T = yes) |
1 2 3 4 5 6 7 8 9 | load_chapter(3)
# Genotype counts for SNP rs 6498169 in RA patients
## Not run:
MidP_multinomial_test_1xc(n=c(276, 380, 118), pi0=c(0.402, 0.479, 0.119))
## End(Not run)
# subset of 10 patients
MidP_multinomial_test_1xc(n=c(6, 1, 3), pi0=c(0.402, 0.479, 0.119))
unload_chapter(3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.