https://github.com/cran/IQCC
Tip revision: 5c6e6dea621fd5b486441c5e649098ad5a6549e6 authored by Flavio Barros on 15 November 2017, 21:16:12 UTC
version 0.7
version 0.7
Tip revision: 5c6e6de
T2.1.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/T2.1.R
\name{T2.1}
\alias{T2.1}
\title{Hotelling T2 Statistic for Phase I.}
\usage{
T2.1(estat, m, n)
}
\arguments{
\item{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.}
\item{m}{The number of samples generated previously in data.1.}
\item{n}{The size of each samples used previously in data.1.}
}
\value{
Return a vector with the Hotelling T2 statistics.
}
\description{
Calculate the Hotelling T2 statistic for multivariate observations at phase
I , to be used to build the corresponding control chart.
}
\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.1" (or other way to supply the data).
}
\examples{
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)
T2.1(estat, 50, 1)
#Example with sub group observations
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
T2.1(estat, 20, 10)
}
\references{
Montgomery, D.C.,(2008)."Introduction to Statistical Quality
Control". Chapter 11. Wiley.
}
\seealso{
\link{stats}, \link{data.1}, \link{cchart.T2.1}
}
\author{
Daniela R. Recchia, Emanuel P. Barbosa
}