Learn R Programming

IQCC (version 1.0)

datasubII: Hotelling Control Chart Phase II with sub-group observations simulated data.

Description

This function simulate a normal data set to be used in the phase II Hotelling control charts with sub-group observations.

Usage

datasubII(estat, n, delta = 0, p)

Arguments

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.
n
The size of each sub group.
delta
A value to be added on the vector of means.
p
The dimension.

Value

  • Return an array with the simulated data.

Details

To use this function it is necessary to have the information about the phase I given by the functions datasubI and estatauxsub.

See Also

datasubI,dataindI,dataindII

Examples

Run this code
mu<-c(5.682,88.22)
Sigma<-symMatrix(c(3.770,-5.495,13.53),2)
datum<-datasubI(20,10,mu,Sigma,2)
# estat is the list with the values of the auxiliary statistics.
estat<-estatauxsub(datum,20,10,2)
datum2<-datasubII(estat,10,p=2)

Run the code above in your browser using DataLab