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
stats.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats.R
\name{stats}
\alias{stats}
\title{Auxiliary statistics for the multivariate control chart.}
\usage{
stats(datum, m, n, p)
}
\arguments{
\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.}
}
\value{
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.
}
\description{
This function calculate the auxiliary statistics necessary to build the
control chart reference lines.
}
\details{
To use this function it is necessary to have the information about the
data.1.
}
\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)
#Example with sub-group observations
datum <- data.1(20, 10, mu, Sigma)
estat <- stats(datum, 20, 10, 2)
}
\author{
Daniela R. Recchia, Emanuel P. Barbosa
}