L1prop {evidence} | R Documentation |
Likelihood analysis of the binomial parameter for one sample.
Description
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.
Usage
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 |
Value
none, the normed likelihood for different values of the binomial probability is plotted with the likelihood interval, and some information is printed
Author(s)
Robert van Hulst
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
Pawitan, Y. 2001. In All Likelihood. Oxford University Press, Oxford.
See Also
Examples
L1prop(13, 78, 0.02)