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"))method = "YGZO".1-alpha is the confidence level.P) such that the tolerance interval of interest will only exceed P.prime by the probability given by delta.side = 1 or side = 2, respectively).integrate function, which is used for the underlying exact method for calculating the normal tolerance intervals.method = "DIR" or method = "YGZO". By default, the values are NA. The two elements of the vector are for the lower and upper specificamethod = "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"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 resnorm.ss returns a data frame with items:method = "DIR".method = "DIR".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).
bayesnormtol.int, Normal, normtol.int## 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