Description Usage Arguments Value Examples
View source: R/cusum_control.R
cusum_control
1 2 3 4 5 6 7 8 | cusum_control(
x,
target = NULL,
std_dev = NULL,
desired_shift = 1,
k = 0.5,
h = 4
)
|
x |
input vector |
target |
target value for comparison, the mean of x will be used if missing |
std_dev |
Defaults to the screened moving range of x. A known or desired value for standard deviation can be supplied instead. |
desired_shift |
how many standard deviations do you want to detect? This value is typically between 0.5 to 1. Defaults to 1. |
k |
allowable slack - defaults to half the standard deviation multiplied by desired shift |
h |
action limits - usually between 4 and 5, defaults to 4. The standard deviation is multiplied by this value to determine the upper and lower limits on the chart |
data.frame showing original inputs and calculated control limits
1 2 | test_vec3 <- c(1,1,2,3,5,7,11,7,5,7,8,9,5)
controls <- cusum_control(test_vec3, target = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.