stats {IQCC} | R Documentation |
Auxiliary statistics for the multivariate control chart.
Description
This function calculate the auxiliary statistics necessary to build the control chart reference lines.
Usage
stats(datum, m, n, p)
Arguments
datum |
The data set. Should be an array. |
m |
The number of sub groups generated previously in data.1. |
n |
The size of each sub group used previously in data.1. |
p |
The dimension used previously in function data.1. |
Details
To use this function it is necessary to have the information about the 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.
Author(s)
Daniela R. Recchia, Emanuel P. Barbosa
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)
[Package IQCC version 0.7 Index]