View source: R/calculate_limits.R
calculate_limits | R Documentation |
Calculates control limits for control charts using given data and sizes. Supports both type 1 (discrete data) and type 2 (continuous data) control charts.
calculate_limits(data, sizes = NULL, type)
data |
A numeric vector of data values. |
sizes |
An optional numeric vector of sample sizes. Required for type 1 charts. |
type |
An integer representing the type of control chart. There are two possible types: |
A list containing the lower and upper control limits, and the center.
# Example for type 2 chart with continuous data
data_values <- c(0.55, 0.60, 0.65, 0.70, 0.75)
calculate_limits(data_values, type=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.