bernPval: p-val calculation to compare mulinomial trials. This function...

Description Usage Arguments Value Examples

View source: R/mtest.R

Description

p-val calculation to compare mulinomial trials. This function is R only, use m.test for a faster alternative.

Usage

1
bernPval(experiments = list())

Arguments

experiments

List of multinomial trials. Each trial is codified as a vector with the number of results in each category. The number and order of categories must be the same in every experiment. In a binomial experiment, this would be c(number_of_successes, number_of_failures). The function also accepts a matrix (one column per experiment).

Value

p-value according to the null hypothesis that the probability of each outcome is the same in every experiment (two-sided)

Examples

1
bernPval(list(c(8, 2), c(4, 7)))

vqf/mtest documentation built on Dec. 23, 2021, 4:11 p.m.