Previous Page | Next Page

Functions

ASN2 Function

computes the average sample number for a double-sampling plan.

Syntax

ASN2(mode,)

where

mode

identifies whether sampling is under full inspection (mode is 'FULL') or semicurtailed inspection (mode is 'SEMI').

is the acceptance number for the first sample, where .

is the rejection number for the first sample, where .

is the acceptance number for the second sample, where .

is the size of the first sample, where .

is the size of the second sample, where .

is the proportion of nonconforming items produced by the process, where .

Description

The ASN2 function returns the average sample number for a Type B double-sampling plan under full inspection (mode is 'FULL') or semicurtailed inspection (mode is 'SEMI'). For details on Type B double-sampling plans, see Types of Sampling Plans.

For full inspection, the average sample number is

     

and for semicurtailed inspection, the average sample number is

     

where

     
     
     
     
     
     

Examples

The first set of statements results in a value of 15.811418112. The second set of statements results in a value of 14.110408695.

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;

Previous Page | Next Page | Top of Page