R/rgsp_asym2.R
rgsp_asym2.Rd
Calculates Sample Number and Average Sample Number for Repetitive Group Sampling Plan based on Cpk under asymmetric case 2 as given in Aslam et al. (2013)
# S3 method for default rgsp_asym2(.p1, .p2, .alpha, .beta, .nums, .rep)
.p1 | Acceptable Quality Level (AQL) Probability |
---|---|
.p2 | Limiting Quality Level (LQL) Probability |
.alpha | Producer's alpha-risk |
.beta | Consumer's beta-risk |
.nums | Number of samples with replacement at each iteration |
.rep | Number of iterations |
Sample Number and Average Sample Number
Aslam, M., Wu, C., Jun, C., Azam, M. and Itay, N. (2013). Developing a variables repetitive group sampling plan based on process capability index Cpk with unknown mean and variance. Journal of Statistical Computation and Simulation. 83(8):1507-1517. (https://www.tandfonline.com/doi/abs/10.1080/00949655.2012.663374)
rgsp_asym2( .p1 = 0.001 , .p2 = 0.003 , .alpha = 0.050 , .beta = 0.100 , .nums = 10000 , .rep = 10 # 1000 )#> [38;5;246m# A tibble: 1 x 6[39m #> p1 p2 n ka kr ASN #> [3m[38;5;246m<dbl>[39m[23m [3m[38;5;246m<dbl>[39m[23m [3m[38;5;246m<int>[39m[23m [3m[38;5;246m<dbl>[39m[23m [3m[38;5;246m<dbl>[39m[23m [3m[38;5;246m<dbl>[39m[23m #> [38;5;250m1[39m 0.001 0.003 79 0.994 0.919 193.