cv17_cusum {CleaningValidation} | R Documentation |
Create a CUSUM Chart for Poisson-distributed Data
Description
This function computes the cumulative sum (CUSUM) for the mean values of a specified residue column aggregated by a cleaning event column. It then generates a CUSUM chart for visualizing the stability of a process based on a Poisson distribution. The reference value 'k' can be provided; if not, it defaults to half of the process average lambda.
Usage
cv17_cusum(data, residue_col, cleaning_event_col, k = NULL)
Arguments
data |
A data frame containing the dataset for analysis. |
residue_col |
The name of the column representing residue data. |
cleaning_event_col |
The name of the column representing cleaning events. |
k |
The reference value used in calculating CUSUM, by default it is set to half of lambda. |
Value
A ggplot object representing the CUSUM chart.
Author(s)
Chan, Mohamed, Lou, Wendy, Yang, Xiande [xiande.yang at gmail.com]
Examples
# To create a CUSUM chart with default k value
cv17_cusum(data = Eq_Mic, residue_col = "Mic", cleaning_event_col = "CleaningEvent")
# To create a CUSUM chart with a specified k value
cv17_cusum(data = Eq_Mic, residue_col = "Mic", cleaning_event_col = "CleaningEvent", k = 0.75)
[Package CleaningValidation version 1.0 Index]