CalculateLimits {Rspc} | R Documentation |
Evaluates whether to use custom limits or calculate them from the data.
CalculateLimits(x, lcl = NA, cl = NA, ucl = NA, type = "i",
controlLimitDistance = 3)
x |
Numerical vector |
lcl |
Lower control limit, single value or NA |
cl |
Central line, single value or NA |
ucl |
Upper control limit, single value or NA |
type |
Type of control chart, either "i" for i-chart (default) or "c" for c-chart |
controlLimitDistance |
Multiple of st.dev to be used to calculate limits, possible values: 1, 2, 3 (default); this parameter affect the interpretation of lcl and ucl parameters |
If at least two limits were provided, the missing ones are calculated from the them. If one or zero limits were provided the rest is computed from data.
Named list with limits
CalculateLimits(x = rnorm(10), lcl = NA, cl = 100, ucl = NA, type = 'i')