powered by
$$C_{pm} = \frac{\text{USL} - \text{LSL}}{L \sqrt{\sigma^2 + (\mu - T)^2}}$$
Only vectors of length 1 are recycled.
NA's take precedence over NaN's, e.g. NaN + NA will output NA.
NA
NaN
NaN + NA
Yields NaN if sigma == 0 and mu == target.
sigma == 0
mu == target
C_pm(mu, sigma, target, lsl, usl, dl)
double.
double
numeric.
numeric
numeric. \(T\).
numeric. \(L\), conventionally set to 6. Must be greater than 0.
Montgomery, D. C. (2019). Introduction to statistical quality control (8th ed.). Wiley. ISBN: 978-1-119-39930-8
set.seed(1L) data = rnorm(n = 30L, mean = 3., sd = 1.) C_pm(mu = mean(data), sigma = sd(data), target = 3., lsl = 0., usl = 6., dl = 6.) # [1] 1.077827
Run the code above in your browser using DataLab