bernDist: Get the probabilities of each possible result in a set of...

Description Usage Arguments Value Examples

View source: R/mtest.R

Description

This function is called by bernPval, and therefore is not usually called independently. It is exported so that interested users can check the distribution. To also compute the cumulative probabilities, the result must be sent to calCumul. A given result can be retrieved with probeDist

Usage

1
bernDist(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

List containing each possible result with the same number of experiments, tries and outcomes as the input. Each element in the list contains a matricial description of the result (desc), the total number of times each outcome was measured (sdesc) and the absolute probability of the result (val).

Examples

1
r <- bernDist(list(c(8, 2), c(4, 7)))

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