L2prop: 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
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.