View source: R/natural.tolerance.binom.simple.R
natural.tolerance.binom.simple | R Documentation |
Calculates the natural tolerance of a given probability distribution, defined as F(p.upper)-F(p.lower) where F is a quantile function for a given univariate distribution. Default is to calculate the natural tolerance with a total tail area of .0027, or .00135 on the lower tail and .00135 on the upper tail. Note: for discrete distributions, tail areas may not exactly equal the input parameters.
natural.tolerance.binom.simple(
size = 10,
prob = 0.5,
total.area = 1 - 0.9973,
upper.tail = total.area/2,
lower.tail = total.area/2,
details = T
)
size |
Scalar/numeric - Sample size |
prob |
Scalar/numeric - probability of "success". |
total.area |
Scalar/numeric - the total area to use for the calculation, default is .0027 |
upper.tail |
Scalar/numeric - upper tail area to use for the calculation, default is .00135 |
lower.tail |
Scalar/numeric - lower tail area to use for the calculation, default is .00135 |
details |
Scalar/logical - Include calculation details, default is to return details |
Scalar or data.frame - scalar if details = F, otherwise data frame with details from calculation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.