n.clopper.pearson {GenBinomApps} | R Documentation |
Required Sample Size
Description
Provides the required sample size with respect to the one-sided upper Clopper-Pearson limit.
Usage
n.clopper.pearson(k, p, alpha = 0.1, uniroot.lower = k + 1, uniroot.upper = 1e+100,
uniroot.maxiter = 1e+05, uniroot.tol = 1e-10)
Arguments
k |
number of failures. |
p |
target probability. |
alpha |
significance level for the |
uniroot.lower |
The value of the |
uniroot.upper |
The value of the |
uniroot.maxiter |
The value of the |
uniroot.tol |
The value of the |
Details
Provides the required sample size with respect to the upper Clopper-Pearson limit for a given target failure probability at a certain confidence level.
Value
The value for the required sample size.
References
D.Kurz, H.Lewitschnig, J.Pilz, Decision-Theoretical Model for Failures which are Tackled by Countermeasures, IEEE Transactions on Reliability, Vol. 63, No. 2, June 2014.
See Also
Examples
## target failure probability p=0.0002, 8 failures
n.clopper.pearson(8,0.0002)
# 64972