lundi 24 juin 2019

3 conditions are not acceptable in if statement in R

Declare the process is out of control if Y>=UCL1,Y<=LCL1 (UCL1 and LCL1 control limits are called the outer control limits). Declare the process is in control if LCL2<=Y<=UCL2 ( and are called the inner control limits). However if UCL2

for(j in 1:10000){

for(t in 1:10000)`
if(Y>UCL2 | Y<LCL2 & Y>UCL1 | Y<UCL2 & Y>LCL2 | Y<LCL1) { rl[j]=t}   else{ rl[j]=0}

Aucun commentaire:

Enregistrer un commentaire