Likelihood analysis of the binomial parameter for one sample.
Likelihood analysis of the binomial parameter for one sample.
When given the number of ``successes'' and the sample size this function plots the normed likelihood of values of the binomial parameter π and calculates the likelihood ratio for a hypothesized value and the maximum likelihood value for the sample, as well as an approximate frequentist p-value.
L1prop(x, n, p.hypoth, pLset=0.05)
Arguments
x: the number of sampling units with the feature
n: the number of sampling units examined
p.hypoth: the hypothesized probability
pLset: the desired likelihood for the likelihood interval
Returns
none, the normed likelihood for different values of the binomial probability is plotted with the likelihood interval, and some information is printed
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
Pawitan, Y. 2001. In All Likelihood. Oxford University Press, Oxford.