View source: R/natural.tolerance.R
natural.tolerance | 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.
natural.tolerance(
f,
total.area = 1 - 0.9973,
upper.tail = total.area/2,
lower.tail = total.area/2,
details = T
)
f |
Function - f(p, lower.tail) is a quantile function for the probability distribution in question. For example, qnorm. |
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.