Learn R Programming

IQCC (version 1.0)

T2subII: Hotelling T2 Statistic for sub group Phase II.

Description

Calculate the Hotelling T2 statistic for multivariate sub-group observations at phase II , to be used to build the corresponding control chart.

Usage

T2subII(datum2, estat, n)

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 matrix with the means, mean of the means and mean of the standard deviation.
n
The size of each sub group used previously in datasubII.

Value

  • Return a vector with the Hotelling T2 statistics.

Details

Before using this function it is necessary to execute the function "estatauxsub"(that calculate the auxiliary statistics involved in the T2 formula) and the function "datasubII" (or other way to supply the data).

References

Montgomery, D.C.,(2008)."Introduction to Statistical Quality Control". Chapter 11. Wiley.

See Also

T2subI,estatauxsub, datasubII, graphsubII

Examples

Run this code
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)

Run the code above in your browser using DataLab