p_gr: P control chart for attributes

Description Usage Arguments Value Author(s) References See Also Examples

Description

Calculates the p control chart for attributes, using a sample D of number of defectives or nonconforming items and a constant sample size n. The values plotted in graph are the fractions pof defectives.

Usage

1
p_gr(D, n)

Arguments

D

A data frame containing in one column the non conforming items, and must be integer and non negative.

n

A vector of length one, integer and nonnegative, to fix the sample size.

Value

in.control

The under control row list for the p chart

out.control

The out of control row list for the p chart

Iteraciones

The number of iterations, in this function always will be the first and the last one

data.n

The fixed sample size

data.0

The original data frame

data.1

The filtered data frame

bin

The binary values for out of control equal to one and under control equal to zero

Limites de Control Grafica p

The p chart control limits vector

Conclusion del proceso

The same results in a phrase as the bin values

Author(s)

Erick Marroquin

References

Montgomery, D.C. (2005) Introduction to Statistical Quality Control, 5th ed. New York: John Wiley & Sons, ISBN 0-471-65631-3

See Also

P_it, c_gr, C_it, np_gr, NP_it, u_gr, U_it

Examples

1
2

Example output

[1] "Proceso fuera de Control en Grafica p"
$in.control
 [1]  1  2  4  5  6  7  8 10 11 12 13 14 15 16 17 18 19 21 23 24 25 26 27 28 29
[26] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
[51] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
[76] 80

$out.control
[1]  3  9 20 22

$Iteraciones
[1] 1

$data.n
[1] 100

$data.0
    D
1   1
2   9
3  12
4   3
5   5
6   6
7   3
8   4
9  10
10  9
11  1
12  3
13  3
14  2
15  4
16  1
17  1
18  9
19  3
20 11
21  7
22 10
23  4
24  7
25  2
26  2
27  2
28  3
29  1
30  3
31  3
32  2
33  4
34  4
35  5
36  3
37  1
38  2
39  6
40  1
41  4
42  1
43  3
44  6
45  3
46  4
47  4
48  3
49  0
50  1
51  9
52  3
53  5
54  6
55  3
56  5
57  2
58  4
59  2
60  1
61  3
62  3
63  2
64  2
65  4
66  2
67  3
68  3
69  4
70  4
71  2
72  6
73  8
74  5
75  3
76  3
77  2
78  1
79  4
80  2

$data.1
 [1] 0.01 0.09 0.03 0.05 0.06 0.03 0.04 0.09 0.01 0.03 0.03 0.02 0.04 0.01 0.01
[16] 0.09 0.03 0.07 0.04 0.07 0.02 0.02 0.02 0.03 0.01 0.03 0.03 0.02 0.04 0.04
[31] 0.05 0.03 0.01 0.02 0.06 0.01 0.04 0.01 0.03 0.06 0.03 0.04 0.04 0.03 0.00
[46] 0.01 0.09 0.03 0.05 0.06 0.03 0.05 0.02 0.04 0.02 0.01 0.03 0.03 0.02 0.02
[61] 0.04 0.02 0.03 0.03 0.04 0.04 0.02 0.06 0.08 0.05 0.03 0.03 0.02 0.01 0.04
[76] 0.02

$bin
[1] 1

$`Limites de Control Grafica p`
     LCI.p      LCS.p       LC.p 
0.00000000 0.09600496 0.03837500 

$`Conclusion del proceso`
[1] "Proceso fuera de Control en Grafica p"

XRSCC documentation built on May 2, 2019, 5:11 a.m.