- data_matrix_new
observed data arranged in a numeric matrix format.
data_matrix_new[i,j]
is the jth observation of the ith subject.
- time_matrix_new
observation times arranged in a numeric matrix format.
time_matrix_new[i,j]
is the jth observation time of the ith subject.
data_matrix_new[i,j]
is observed at time_matrix_new[i,j]
.
- nobs_new
number of observations arranged as an integer vector.
nobs_new[i]
is the number of observations for the ith subject.
- pattern
the estimated regular longitudinal pattern
- side
a character value specifying the sideness/direction of process monitoring
If side="upward"
apply control charts that aim to detect upward shifts.
If side="downward"
apply control charts that aim to detect downward shifts.
If side="both"
apply control charts that aim to detect shifts in both sides
- chart
a string specifying the control charts to use.
If chart="CUSUM"
apply CUSUM charts.
If chart="EWMA"
apply EWMA charts.
- method
a string
If method="standard"
, standardize observations by mean and variance (cf., Qiu and Xiang, 2014).
If method="decorrelation"
, standardize and decorrelate observations by mean and covariance (cf., Li and Qiu, 2016).
If method="sprint"
, standardize and decorrelate observations within sprint length by mean and covariance (cf., You and Qiu 2018).
If method="distribution and standard"
, standardize observations by distribution (cf., You and Qiu, 2020).
If method="distribution and decorrelation"
, standardize observations by distribution and covariance (cf., You and Qiu, 2020).
If method="distribution and sprint"
,standardize and decorrelate observations within sprint length by distribution and covariance (cf., You and Qiu, 2020).
method="nonparametric and standard"
currently not supported.
method="nonparametric and decorrelation"
currently not supported
- parameter
a numeric value
If chart="CUSUM"
, parameter
is the allowance constant in the control chart.
If chart="EWMA"
, parameter
is the weighting in the control chart.
- CL
a numeric value speficying the control limit.
A signal will be given if charting statistics are larger than the control limit.
(Note: in this package, signs of charting statistics may be reversed such that
larger values of charting statistics indicate worse performance of processes.)
After the signal is given, the algorithm stops calculating the charting statistics for the remaining observation times.
The default value of control limit is infinity, which means we will calculate the charting statistics for all observation times.