|
Chapter Contents |
Previous |
Next |
| Functions |
where
| mode | identifies whether sampling is under full inspection (mode is 'FULL') or semicurtailed inspection (mode is 'SEMI'). |
| a1 | is the acceptance number for the first sample, where
|
| r1 | is the rejection number for the first sample, where r1>a1+1. |
| a2 | is the acceptance number for the second sample, where
|
| n1 | is the size of the first sample, where |
| n2 | is the size of the second sample, where |
| p | is the proportion of nonconforming items produced by the process, where 0<p<1. |
For full inspection, the average sample number is
![{ASN}=n_{1}+n_{2}[F(r_{1}-1| n_{1})-
F(a_{1}| n_{1})]](images/ap3eq9.gif)
and for semicurtailed inspection, the average sample number is
![{ASN}=n_{1}+ \sum_{d=a_{1}+1}^{r_{1}-1} f(d| n_{1})
( n_{2}F(a_{2}-d| n_{2}) + \frac{r_{2}-d}p
[1- F(r_{2}-d| n_{2}+1)] )](images/ap3eq10.gif)

data;
asn=asn2('full',0,2,1,13,13,0.18);
put asn;
run;
data;
asn=asn2('semi',0,2,1,13,13,0.18);
put asn;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.