updatesub {IQCC}R Documentation

Update the Hotelling Control Chart for sub-group observations.

Description

This function is used to update the sub-group phase II control chart with new observations.

Usage

updatesub(datum2, estat, T2II, n, t, j)

Arguments

datum2 The data set for the phase II. Shoul be a vector.
estat The values of the auxiliary statistics. Should be a list with a vector with the mean of the mean vectors, a matrix with the average of the variance-covariance matrices and a matrix with the means.
T2II A vector with the value of T2 statistic for one sample.
n The sub group size.
t The maximum value of the x axis.
j The index of the current sample.

Details

To use this function it is necessary to have the output given by the function T2subII. At every step you should entry with the new data set.

Value

Add the new observation to the current Hoteliing control chart for phase II with sub-group observations.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa

See Also

T2subII

Examples

mu<-c(5.682,88.22)
Sigma<-symMatrix(c(3.770,-5.495,13.53),2)
datum<-datasubI(20,10,mu,Sigma,2)
estat<-estatauxsub(datum,20,10,2)
datum2<-datasubII(estat,10,p=2)
T2II<-T2subII(datum2,estat,10)
updatesub(datum2,estat,T2II,10,25,2)

[Package IQCC version 1.0 Index]