mu<-c(5.682,88.22)
Sigma<-symMatrix(c(3.770,-5.495,13.53),2)
datum<-dataindI(50,mu,Sigma,2)
estat<-estatauxind(datum,50,2)
datum2<-dataindII(estat,p=2)
T2II<-T2indII(datum2,estat)
# for the first sample j=1; T2II is a vector with the value of the firts T2 statistic.
graphindII(T2II,50,1,25,2)
Run the code above in your browser using DataLab