Calculates Average Sample Numbers (ASN), Average Run Length (ARL1) and value of k for NP control charts under repetitive sampling as given in Aslam et al.(2014)

# S3 method for default
npcrs1(.n, .p0, .f, .ssize = NULL, .k = NULL,
  .kr = NULL)

Arguments

.n

Sample Size

.p0

probability that process is in control

.f

Size of the Shift

.ssize

Number of samples with replacement at each iteration

.k

Positive Constant

.kr

Random Positive Constant

Value

ARL0, ARL1 and K

References

Aslam, M., Azam, M. and Jun, C. (2014). New Attributes and Variables Control Charts under Repetitive Sampling. Industrial Engineering & Management Systems. 13(1):101-106.

Examples

library(magrittr) npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .k = 2.6432 )
#> # A tibble: 1 x 2 #> ARL0 ARL1 #> <dbl> <dbl> #> 1 134. 75.5
npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .ssize = 1000 , .kr = 4 )
#> Warning: numerical expression has 377 elements: only the first used
#> Warning: numerical expression has 377 elements: only the first used
#> Warning: numerical expression has 377 elements: only the first used
#> Warning: numerical expression has 377 elements: only the first used
#> # A tibble: 377 x 3 #> k ARL0 ARL1 #> <dbl> <dbl> <dbl> #> 1 2.88 134. 75.5 #> 2 2.91 134. 75.5 #> 3 2.94 134. 75.5 #> 4 2.83 134. 75.5 #> 5 2.79 134. 75.5 #> 6 2.73 134. 75.5 #> 7 2.93 134. 75.5 #> 8 2.92 134. 75.5 #> 9 2.75 134. 75.5 #> 10 2.62 134. 75.5 #> # … with 367 more rows