L1prop: Likelihood analysis of the binomial parameter for one sample.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/L1prop.R

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

1
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

B1prop

prop.test

Examples

1
L1prop(13, 78, 0.02)

evidence documentation built on May 2, 2019, 2:14 p.m.