L2prop: Likelihood analysis of the binomial parameters for two...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/L2prop.R

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

1
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

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

evidence documentation built on May 2, 2019, 2:14 p.m.