prop.conf.1s: Confidence Functions for One Proportion

Description Usage Arguments Value References Examples

View source: R/prop.R

Description

Confidence functions a single binomial proportion based on the mid P-value.

Usage

1
prop.conf.1s(x, n, plot = TRUE, conf.level = 0.95)

Arguments

x

the number of successes out of n trials

n

the number of trials

plot

whether to plot the confidence density and curve

conf.level

the confidence level for the confidence interval indicated on the confidence curve

Value

A list containing the confidence functions pconf, dconf, cconf, and qconf for a single proportion, as well as the P-curve and S-curve.

References

Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.

Jan Hannig. "On generalized fiducial inference." Statistica Sinica (2009): 491-544.

Examples

1
prop.conf.1s(x = 0, n = 10)

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.