Title: | Quality Control Charts under Repetitive Sampling |
---|---|
Description: | Functions to calculate Average Sample Numbers (ASN), Average Run Length (ARL1) and value of k, k1 and k2 for quality control charts under repetitive sampling as given in Aslam et al. (2014) (<DOI:10.7232/iems.2014.13.1.101>). |
Authors: | Muhammad Yaseen [aut, cre], Muhammad Aslam [aut, ctb], Sami Ullah [aut, ctb], Muhammad Azam [aut, ctb], Chi-Hyuck Jun [aut, ctb], Muhammad Kashif [aut, ctb] |
Maintainer: | Muhammad Yaseen <[email protected]> |
License: | GPL-2 |
Version: | 0.1.0 |
Built: | 2025-02-03 05:09:43 UTC |
Source: | https://github.com/myaseen208/qccrs |
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)
## Default S3 method: npcrs1(.n, .p0, .f, .ssize = NULL, .k = NULL, .kr = NULL)
## Default S3 method: npcrs1(.n, .p0, .f, .ssize = NULL, .k = NULL, .kr = NULL)
.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 |
ARL0, ARL1 and K
Muhammad Yaseen ([email protected])
Muhammad Aslam ([email protected])
Sami Ullah ([email protected])
Muhammad Azam ([email protected])
Chi-Hyuck Jun ([email protected])
Muhammad Kashif ([email protected])
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.
library(magrittr) npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .k = 2.6432 ) npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .ssize = 1000 , .kr = 4 )
library(magrittr) npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .k = 2.6432 ) npcrs1( .n = 60 , .p0 = 0.10 , .f = 0.10 , .ssize = 1000 , .kr = 4 )
Calculates Average Sample Numbers (ASN), Average Run Length (ARL1) and value of k1 and k2 for attributes control charts under repetitive sampling as given in Aslam et al.(2014)
npcrs2(.n, .p0, .f, .ssize = NULL, .k1 = NULL, .k2 = NULL, .k1r = NULL, .k2r = NULL) ## Default S3 method: npcrs2(.n, .p0, .f, .ssize = NULL, .k1 = NULL, .k2 = NULL, .k1r = NULL, .k2r = NULL)
npcrs2(.n, .p0, .f, .ssize = NULL, .k1 = NULL, .k2 = NULL, .k1r = NULL, .k2r = NULL) ## Default S3 method: npcrs2(.n, .p0, .f, .ssize = NULL, .k1 = NULL, .k2 = NULL, .k1r = NULL, .k2r = NULL)
.n |
Sample Size |
.p0 |
probability that process is in control |
.f |
Size of the Shift |
.ssize |
Number of samples with replacement at each iteration |
.k1 |
Fixed positive constant |
.k2 |
Fixed positive constant |
.k1r |
Random postive constant |
.k2r |
Random postive constant |
ASN, ARL, K1 and K2
Muhammad Yaseen ([email protected])
Muhammad Aslam ([email protected])
Sami Ullah ([email protected])
Muhammad Azam ([email protected])
Chi-Hyuck Jun ([email protected])
Muhammad Kashif ([email protected])
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.
library(magrittr) npcrs2( .n = 40 , .p0 = 0.10 , .f = 0.1 , .ssize = 1000 , .k1r = 4 , .k2r = .95 ) npcrs2( .n = 40 , .p0 = 0.10 , .f = 0.1 , .k1 = 3.13 , .k2 = .731 )
library(magrittr) npcrs2( .n = 40 , .p0 = 0.10 , .f = 0.1 , .ssize = 1000 , .k1r = 4 , .k2r = .95 ) npcrs2( .n = 40 , .p0 = 0.10 , .f = 0.1 , .k1 = 3.13 , .k2 = .731 )
The qccrs
package provides functionalities to calculate
Average Sample Numbers (ASN), Average Run Length (ARL1) and
value of k, k1 and k2 for quality control charts under
repetitive sampling as given in Aslam et al. (2014).
Muhammad Yaseen ([email protected])
Muhammad Aslam ([email protected])
Sami Ullah ([email protected])
Muhammad Azam ([email protected])
Chi-Hyuck Jun ([email protected])
Muhammad Kashif ([email protected])
Aslam, M., Azam, M. and Jun, C. (2014). New Attributes and Variables Control Charts under Repetitive Sampling. Industrial Engineering & Management Systems. 1(13):101-106.
Calculates the Average Sample Number and Average Run Length as given in Aslam et al. (2014)
xrs(.c, .n, .k1, .k2) ## Default S3 method: xrs(.c, .n, .k1, .k2)
xrs(.c, .n, .k1, .k2) ## Default S3 method: xrs(.c, .n, .k1, .k2)
.c |
Size of the Shift |
.n |
Sample Size |
.k1 |
Positive Integer |
.k2 |
Positive Integer |
Average Sample Number (ASN) and Average Run Length (ARL1) for xbar control charts under repetitive sampling
Muhammad Yaseen ([email protected])
Muhammad Aslam ([email protected])
Sami Ullah ([email protected])
Muhammad Azam ([email protected])
Chi-Hyuck Jun ([email protected])
Muhammad Kashif ([email protected])
Aslam, M., Azam, M. and Jun, C. (2014). New Attributes and Variables Control Charts under Repetitive Sampling. Industrial Engineering & Management Systems. 1(13):101-106.
library(magrittr) library(purrr) c(0.0, 0.1, 0.20, 0.3, 0.4, 0.5, 1.0, 1.5, 2, 3) %>% purrr::map( function(x) xrs( .c = x , .n = 10 , .k1 = 2.9301 , .k2 = 0.9825))
library(magrittr) library(purrr) c(0.0, 0.1, 0.20, 0.3, 0.4, 0.5, 1.0, 1.5, 2, 3) %>% purrr::map( function(x) xrs( .c = x , .n = 10 , .k1 = 2.9301 , .k2 = 0.9825))