powered by
Single sampling plans for the binomial, hypergeometric and Poisson distributions.
SSPlanBinomial(N, n, Ac, p = seq(0, 0.3, 0.001), Plots = TRUE)
the lot size
the sample size
the acceptance number, being the maximum allowable number of non-conforming units or non-conformities
a vector of values for the possible fraction of product that is non-conforming
logical to request generation of the four plots
Dodge, H.F. and Romig, H.G. (1959) “Sampling Inspection Tables, Single and Double Sampling”, Second edition, John Wiley and Sons, New York.
# NOT RUN { SSPlanBinomial(1000, 20,1) SSPlanHyper(5000, 200,3) SSPlanPoisson(1000, 20,1) # }
Run the code above in your browser using DataLab