calculate_limits {bcc} | R Documentation |
Calculate Control Limits
Description
Calculates control limits for control charts using given data and sizes. Supports both type 1 (discrete data) and type 2 (continuous data) control charts.
Usage
calculate_limits(data, sizes = NULL, type)
Arguments
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: |
Value
A list containing the lower and upper control limits, and the center.
Examples
# 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)
[Package bcc version 1.5 Index]