Learn R Programming

IQCC (version 1.0)

dataindI: Hotelling Control Chart Phase I with indiviual observations simulated data.

Description

This function simulate a normal data set to be used in the phase I Hotelling control charts with individual observations.

Usage

dataindI(m, mu, Sigma, p)

Arguments

m
The number of samples to be generated.
mu
The vector with the means of the data to be generated.
Sigma
The vector with the variance-covariance matrix of the data to be generated.
p
The dimension.

Value

  • Return a matrix with the simulated data.

Details

It is necessary to give the name "datum" for the output of this function, ex. datum<-dataindI(), because this name will be called in the next functions.

See Also

dataindII,datasubI,datasubII

Examples

Run this code
mu<-c(5.682,88.22)
Sigma<-symMatrix(c(3.770,-5.495,13.53),2)
datum<-dataindI(50,mu,Sigma,2)

Run the code above in your browser using DataLab