Raw File
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Auxiliary statistics for the multivariate control chart. }
  This function calculate the auxiliary statistics necessary to build the control chart reference lines.
stats(datum, m, n, p)
%- maybe also 'usage' for other objects documented here.
  \item{datum}{ The data set. Should be an array. }
  \item{m}{ The number of sub groups generated previously in data.1. }
  \item{n}{ The size of each sub group used previously in data.1. }
  \item{p}{ The dimension used previously in function data.1. }
To use this function it is necessary to have the information about the data.1. 
  Return the values of the three statistics: a vector with the mean of the means, the mean of the estimated variance-covariance matrixes and a matrix with the means of each sample.
\author{ Daniela R. Recchia, Emanuel P. Barbosa }
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)
#Example with sub-group observations
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
back to top