cv18_ewma {CleaningValidation}R Documentation

Exponentially Weighted Moving Average (EWMA) Chart

Description

Generates an EWMA chart for a specified residue column grouped by cleaning events.

Usage

cv18_ewma(data, residue_col, cleaning_event_col, alpha = 0.2)

Arguments

data

A data frame containing the data set for analysis.

residue_col

The name of the column representing residue data.

cleaning_event_col

The name of the column representing cleaning events.

alpha

The smoothing parameter for the EWMA calculation, default is 0.2.

Value

A ggplot object representing the EWMA chart.

Author(s)

Chan, Mohamed, Lou, Wendy, Yang, Xiande [xiande.yang at gmail.com]

Examples

# Assuming 'Eq_Mic' is a data frame, 'Mic' is the residue column of interest,
# and 'CleaningEvent' is the column representing cleaning events.
ewma_plot <- cv18_ewma(data = Eq_Mic, residue_col = "Mic", cleaning_event_col = "CleaningEvent")
print(ewma_plot)

[Package CleaningValidation version 1.0 Index]