natural.tolerance.poisson.simple: Natural Tolerance - Poisson Distribution

View source: R/natural.tolerance.poisson.simple.R

natural.tolerance.poissonR Documentation

Natural Tolerance - Poisson Distribution

Description

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.

Usage

natural.tolerance.poisson(x, ...)

natural.tolerance.poisson.simple(
  lambda = 5,
  total.area = 1 - 0.9973,
  upper.tail = total.area/2,
  lower.tail = total.area/2,
  details = T
)

Arguments

x

Vector/numeric - data to fit parameters

...

Additional parameters for natural.tolerance

lambda

Scalar/numeric - rate parameter for normal distribution.

Value

Scalar or data.frame - scalar if details = F, otherwise data frame with details from calculation.


burrm/lolcat documentation built on Sept. 15, 2023, 11:35 a.m.