m.test: p-val calculation to compare multinomial trials

Description Usage Arguments Value Examples

View source: R/mtest.R

Description

p-val calculation to compare multinomial trials

Usage

1
m.test(experiments)

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 for the null hypothesis (all underlying outcome probabilities are the same in every experiment)

Examples

1
m.test(list(c(8, 2), c(4, 7)))

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