L1prop function

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 π\pi 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.

Author(s)

Robert van Hulst

See Also

B1prop

prop.test

Examples

L1prop(13, 78, 0.02)
  • Maintainer: Robert van Hulst
  • License: GPL (>= 2)
  • Last published: 2018-05-15

Useful links