MidP_multinomial_test_1xc: The mid-P multinomial test for multinomial probabilities

Description Usage Arguments Examples

View source: R/MidP_multinomial_test_1xc.R

Description

The mid-P multinomial test for multinomial probabilities

Described in Chapter 3 "The 1xc Table and the Multinomial Distribution"

Usage

1
MidP_multinomial_test_1xc(n, pi0, printresults = TRUE)

Arguments

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)

Examples

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)

ocbe-uio/contingencytables documentation built on Feb. 27, 2021, 4:10 p.m.