#' Calculate Capability Measures - CpL
#'
#' Calculate CpL, a measure that compares the distance between process center and lower specification limit to process variability.
#' Lower process variability and larger distance between process center and lower specification limit lead to higher values, which
#' are generally considered better.
#'
#' @param lower.specification Lower specification limit (if applicable)
#' @param process.variability Estimate of process variability, expressed as variance
#' @param process.center Estimate of process center
#' @param n.sigma The number of standard deviations to use in the denominator of the calculation. 6 is recommended, but 5.15 has also been historically used by Automotive Industry Action Group (AIAG).
#'
#' @return A scalar with computed CpL.
spc.capability.cpL.simple <- function (
lower.specification
,process.center
,process.variability #Usually Expressed as Variance
,n.sigma = 6
) {
abs((process.center-lower.specification)/(n.sigma*sqrt(process.variability)/2))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.