os.m.test: One-sided p-val calculation to compare binomial trials

Description Usage Arguments Value Examples

View source: R/mtest.R

Description

This function only takes two experiments with two outcomes, usually called sucess and failure. The null hypothesis states that the probability of success in the first experiment is higher than the probability of success in the second experiment. Therefore, the order of the experiments is important.

Usage

1
os.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 one-sided null hypothesis.

Examples

1
2
# H0: p(success in exp1) > p(success in exp2)
os.m.test(list(c(10, 8), c(10, 3)))

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