Learn R Programming

tolerance (version 1.1.1)

norm.ss: Sample Size Determination for Normal Tolerance Intervals

Description

Provides minimum sample sizes for a future sample size when constructing normal tolerance intervals. Various strategies are available for determining the sample size, including strategies that incorporate known specification limits.

Usage

norm.ss(x = NULL, alpha = 0.05, P = 0.99, delta = NULL,
        P.prime = NULL, side = 1, m = 50, spec = c(NA, NA),
        hyper.par = list(mu.0 = NULL, sig2.0 = NULL, 
        m.0 = NULL, n.0 = NULL), method = c("DIR", 
        "FW", "YGZO"))

Arguments

x
A vector of historical data that is distributed according to a normal distribution. This is only required for method = "YGZO".
alpha
The level chosen such that 1-alpha is the confidence level.
P
The proportion of the population to be covered by this tolerance interval.
delta
The precision measure for the future tolerance interval as specified under the Faulkenberry-Weeks method.
P.prime
The proportion of the population (greater than P) such that the tolerance interval of interest will only exceed P.prime by the probability given by delta.
side
Whether a 1-sided or 2-sided tolerance interval is required (determined by side = 1 or side = 2, respectively).
m
The maximum number of subintervals to be used in the integrate function, which is used for the underlying exact method for calculating the normal tolerance intervals.
spec
A vector of length 2 given known specification limits. These are required when method = "DIR" or method = "YGZO". By default, the values are NA. The two elements of the vector are for the lower and upper specifica
hyper.par
Necessary parameter values for the different methods. If method = "DIR" or method = "YGZO", then mu.0 and sig2.0 must be specified, which correspond to the assumed population mean and variance of the un
method
The method for performing the sample size determination. "DIR" is the direct method (intended as a simple calculation for planning purposes) where the mean and standard deviation are taken as truth and the sample size is determined with res

Value

  • norm.ss returns a data frame with items:
  • alphaThe specified significance level.
  • PThe proportion of the population covered by this tolerance interval.
  • deltaThe user-specified or calculated precision measure. Not returned if method = "DIR".
  • P.primeThe user-specified or calculated closeness measure. Not returned if method = "DIR".
  • nThe minimum sample size determined using the conditions specified for this function.

References

Faulkenberry, G. D. and Weeks, D. L. (1968), Sample Size Determination for Tolerance Limits, Technometrics, 10, 343--348.

Young, D. S., Gordon, C. M., Zhu, S., and Olin, B. D. (2016), Sample Size Determination Strategies for Normal Tolerance Intervals Using Historical Data, Quality Engineering (to appear).

See Also

bayesnormtol.int, Normal, normtol.int

Examples

Run this code
## Sample size determination for 95\%/95\% 2-sided normal 
## tolerance intervals using the direct method.
 
set.seed(100)
norm.ss(alpha = 0.05, P = 0.95, side = 2, spec = c(-3, 3), 
        method = "DIR", hyper.par = list(mu.0 = 0, 
        sig2.0 = 1))

Run the code above in your browser using DataLab