Learn R Programming

spc (version 0.7.1)

xtshewhart.ar1.arl: Compute ARLs of modified Shewhart control charts for AR(1) data with Student t residuals

Description

Computation of the (zero-state) Average Run Length (ARL) for modified Shewhart charts deployed to the original AR(1) data where the residuals follow a Student t distribution.

Usage

xtshewhart.ar1.arl(alpha, cS, df, delta=0, N1=50, N2=30, N3=2*N2, INFI=10, mode="tan")

Value

It returns a single value resembling the zero-state ARL of a modified Shewhart chart.

Arguments

alpha

lag 1 correlation of the data.

cS

critical value (alias to alarm limit) of the Shewhart control chart.

df

degrees of freedom -- parameter of the t distribution.

delta

potential shift in the data (in-control mean is zero.

N1

number of quadrature nodes for solving the ARL integral equation, dimension of the resulting linear equation system is N1.

N2

second number of quadrature nodes for combining the probability density function of the first observation following the margin distribution and the solution of the ARL integral equation.

N3

third number of quadrature nodes for solving the left eigenfunction integral equation to determine the margin density (see Andel/Hrach, 2000), dimension of the resulting linear equation system is N3.

INFI

substitute of Inf -- the left eigenfunction integral equation is defined on the whole real axis; now it is reduced to (-INFI,INFI).

mode

Controls the type of variables substitution that might improve the numerical performance. Currently, "identity", "sin", "sinh", and "tan" (default) are provided.

Author

Sven Knoth

Details

Following the idea of Schmid (1995), 1-alpha times the data turns out to be an EWMA smoothing of the underlying AR(1) residuals. Hence, by combining the solution of the EWMA ARL integral equation and the stationary distribution of the AR(1) data (here Student t distribution is assumed) one gets easily the overall ARL.

References

J. Andel, K. Hrach (2000). On calculation of stationary density of autoregressive processes. Kybernetika, Institute of Information Theory and Automation AS CR 36(3), 311-319.

H. Kramer, W. Schmid (2000). The influence of parameter estimation on the ARL of Shewhart type charts for time series. Statistical Papers 41(2), 173-196.

W. Schmid (1995). On the run length of a Shewhart chart for correlated data. Statistical Papers 36(1), 111-130.

See Also

xtewma.arl for zero-state ARL computation of EWMA control charts in case of Student t distributed data.

Examples

Run this code
## will follow

Run the code above in your browser using DataLab