T2.2: Hotelling T2 Statistic for Phase II.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/T2.2.R

Description

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

Usage

1
T2.2(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 sample used previously in data.2. If they are individual observations, use n = 1.

Details

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

Value

Return a vector with the Hotelling T2 statistics.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa

References

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

See Also

T2.1,stats, data.2, cchart.T2.2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mu <- c(5.682, 88.22)
Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
#Example with individual observations
datum <- data.1(50, 1, mu, Sigma)
estat <- stats(datum, 50, 1, 2)
datum2 <- data.2(estat, 1, p = 2)
T2II <- T2.2(datum2, estat, 1)
#Example with subgroup observations
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
datum2 <- data.2(estat, 10, p = 2)
T2II <- T2.2(datum2, estat, 10)

IQCC documentation built on Nov. 17, 2017, 4:57 a.m.