View source: R/n.clopper.pearson.R
n.clopper.pearson | R Documentation |
Provides the required sample size with respect to the one-sided upper Clopper-Pearson limit.
n.clopper.pearson(k, p, alpha = 0.1, uniroot.lower = k + 1, uniroot.upper = 1e+100,
uniroot.maxiter = 1e+05, uniroot.tol = 1e-10)
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 |
Provides the required sample size with respect to the upper Clopper-Pearson limit for a given target failure probability at a certain confidence level.
The value for the required sample size.
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.
uniroot
,clopper.pearson.ci
## target failure probability p=0.0002, 8 failures
n.clopper.pearson(8,0.0002)
# 64972
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.