L2prop {evidence}R Documentation

Likelihood analysis of the binomial parameters for two samples.

Description

When given the numbers of “successes” and the sample sizes for the two samples, this function plots the normed likelihoods of the two samples and calculates the likelihood ratio for two different models, one fitting two binomial parameters, and one fitting only one.

Usage

L2prop(x, n)

Arguments

x

a vector containing the 2 numbers of sampling units with the feature

n

a vector containing the 2 numbers of sampling units examined

Value

none, the inferred difference between the probabilities and its 95% credible interval are calculated and a plot is produced

Author(s)

Robert van Hulst

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

See Also

B1prop

prop.test

Examples

L2prop(c(13, 22), c(78, 92))

[Package evidence version 0.8.10 Index]