Hi I'm trying to learn how to use R when it comes to acceptance sampling. What I want to do is to type in a lot size, an AQL level and a LQ level and get the required sample size in accordance with inspection level II (ISO 2859-2). I have tried find.plan (c(0.01,0.95), c(0.07,0.05), type="hypergeom", 100)$n, but the value did not correspond to the value of the standard. I then tried x<-OC2c(500,10,type="hypergeom",N=10001,pd=0.0315) and came to the conclusion that R is using inspection level III. Can I use any command to get inspection level II? Best regards Bodil Tufvesson [[alternative HTML version deleted]]