Likelihood analysis of the binomial parameters for two samples.
Likelihood analysis of the binomial parameters for two samples.
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.
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
Returns
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.