https://github.com/cran/IQCC
Raw File
Tip revision: 015c96430f6bddf3c9b4b20d878ceae380a023be authored by Emanuel P. Barbosa on 21 September 2009, 00:00:00 UTC
version 1.0
Tip revision: 015c964
UchartI.R
UchartI <-
function(x,sizes,par,length){
lambda<-mean(par)
h<-matrix(nrow=length,ncol=1); j<-matrix(nrow=length,ncol=1)
for(i in 1:length){ UCL<-lambda+(3*sqrt(lambda/sizes[i])); h[i,]<-UCL
LCL<-lambda-(3*sqrt(lambda/sizes[i])); j[i,]<-LCL}
qcc(x,type="u",sizes,limits=c(j,h),center=lambda,title="U chart phase I")
return(lambda)
}

back to top