npcrs2: Attributes Control Charts under Repetitive Sampling with two...

Description Usage Arguments Value Author(s) References Examples

View source: R/npcrs2.R

Description

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)

Usage

1
2
3
4
5
6
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)

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

.k1

Fixed positive constant

.k2

Fixed positive constant

.k1r

Random postive constant

.k2r

Random postive constant

Value

ASN, ARL, K1 and K2

Author(s)

  1. Muhammad Yaseen (myaseen208@gmail.com)

  2. Muhammad Aslam (aslam_ravian@hotmail.com)

  3. Sami Ullah (samiullahuos@gmail.com)

  4. Muhammad Azam (mazam@uvas.edu.pk)

  5. Chi-Hyuck Jun (chjun@postech.ac.kr)

  6. Muhammad Kashif (mkashif@uaf.edu.pk)

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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
   )

qccrs documentation built on May 1, 2019, 10:20 p.m.