AASingle {AQLSchemes} | R Documentation |
This function calls the function AAZ14Single function that queries the user for the , inspection level, lotsize, and AQL, and then recalls and prints the appropriate sample sizes, acceptance numbers and rejection numbers and returns a data frame.
AASingle(type)
type |
type is either 'Normal', 'Tightened' or 'Reduced' to specify which type sampling plan is desired. |
This function calls the function AAZ14Single to get the specifications and recall and print the plan.
John S. Lawson lawson@byu.edu
1. The Statistics Subcommittee of the Accredited Standards Committee Z1 on Quality Environment Dependability and Statistics "American National Standard Sampling Procedures and Tables for AInspection by Attributes" American Society for Quality, Milwaukee, Wisconsin, 2008.
## To create a normal sampling plan issue the call:AASingle('Normal') ## the user will then be queried interactively to supply the inspection level ## lot size, and AQL. ## create a tightened sampling plan issue the call:AASingle('Tightened') ## the user will then be queried interactively to supply the inspection level ## lot size, and AQL. ## create a reduced sampling plan issue the call:AASingle('Reduced') ## the user will then be queried interactively to supply the inspection level ## lot size, and AQL. ## This example illustrates the use of the AASingle function to retrieve the normal ## sampling plan from the ANSI/ASQ Z1.4 Standard. ##library(AQLSchemes) ##planS<-AASingle('Normal') ##What is the Inspection Level? # ## 1: S-1 ## 2: S-2 ## 3: S-3 ## 4: S-4 ## 5: I ## 6: II ## 7: III # ## Selection: 6 # ## What is the Lot Size? # ## 1: 2-8 2: 9-15 3: 16-25 4: 26-50 ## 5: 51-90 6: 91-150 7: 151-280 8: 281-500 ## 9: 501-1200 10: 1201-3200 11: 3201-10,000 12: 10,001-35,000 ## 13: 35,001-150,000 14: 150,001-500,000 15: 500,001 and over # ## Selection: 11 # ## What is the AQL in percent nonconforming per 100 items? ## 1: 0.010 2: 0.015 3: 0.025 4: 0.040 5: 0.065 6: 0.10 7: 0.15 8: 0.25 ## 9: 0.40 10: 0.65 11: 1.0 12: 1.5 13: 2.5 14: 4.0 15: 6.5 16: 10 ## 17: 15 18: 25 19: 40 20: 65 21: 100 22: 150 23: 250 24: 400 ## 25: 650 26: 1000 # ## Selection: 12 ## > planS ## n c r ## 1 200 7 8 #