The values of the T2 statistic. Shoul be a matrix.
m
The number of samples generated previously in data.1.
n
The size of each sample used previously in data.1. If they are individual obsersations, then use n = 1.
p
The dimension used previously in function data.1.
Details
It builds the Hotelling T2 control chart for multivariate normal data (m samples / samples of size n > 1), used retrospective / validation analysis (phase I); the control limits are based on the F distribution.
Value
Return a control chart.
Author(s)
Daniela R. Recchia, Emanuel P. Barbosa
References
Montgomery, D.C.,(2008)."Introduction to Statistical Quality Control". Chapter 11. Wiley
See Also
cchart.T2.2
Examples
mu <- c(5.682, 88.22)
Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
T2 <- T2.1(estat, 20, 10)
# estat is a list with the auxiliary statistics. T2 is a matrix with the values of the T2 statistic.
cchart.T2.1(T2, 20, 10, 2)
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(IQCC)
Loading required package: qcc
Package 'qcc', version 2.6
Type 'citation("qcc")' for citing this R package in publications.
Loading required package: MASS
Loading required package: micEcon
If you have questions, suggestions, or comments regarding one of the 'micEcon' packages, please use a forum or 'tracker' at micEcon's R-Forge site:
https://r-forge.r-project.org/projects/micecon/
Loading required package: miscTools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IQCC/cchart.T2.1.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cchart.T2.1
> ### Title: Phase I Hotelling Control Chart.
> ### Aliases: cchart.T2.1
>
> ### ** Examples
>
> mu <- c(5.682, 88.22)
> Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
> datum <- data.1(20, 10, mu, Sigma)
> estat <- stats(datum, 20, 10, 2)
> T2 <- T2.1(estat, 20, 10)
> # estat is a list with the auxiliary statistics. T2 is a matrix with the values of the T2 statistic.
> cchart.T2.1(T2, 20, 10, 2)
>
>
>
>
>
> dev.off()
null device
1
>