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