Control Charts-R

yon

New Member
#1
hi, I'm trying to get the Control charts for the following scenarios:

a)An electronics company manufactures several types of cathode-ray tubes on a mass production basis. To monitor the process, 50 tubes of a certain type were randomly sampled from the production line and inspected each day over a period of 21 days.

I got the control chart using command qcc( crt, "type =c")
group 1 and 9 are out of control, but i can't take them out of analysis.
when I go qcc(crt[-1], type="c") i get an error, and i don't know how to delete both of the "out of control" values!

heres the txt file for this problem:
Code:
day no.defective sample.size
1 11 50
2 15 50
3 12 50
4 10 50
5 9 50
6 12 50
7 12 50
8 14 50
9 9 50
10 13 50
11 15 50
12 23 50
13 15 50
14 12 50
15 11 50
16 11 50
17 16 50
18 15 50
19 10 50
20 13 50
21 12 50
b)
A corporation that manufactures field rifles for the Department of Defence operates
a production line that turns out finished firing pins. To monitor that process,
an inspector randomly selects five firing pins from the production line, measures
their lengths (in inches) and repeats this process at 30-minute intervals over a
5-hour period.
I divide it into 5 sub groups using:
gps <- qcc.groups(maple, rep(1:10, each=5))
but it says: Error in qcc.groups(maple, rep(1:10, each = 5)) :
data and sample must be vectors of equal length
i really don't know what i'm to do with this one.

heres the txt file for the data
Code:
length interval
1.05 1
1.03 1
0.99 1
1 1
1.03 1
0.93 2
0.96 2
1.01 2
0.98 2
0.97 2
1.02 3
0.99 3
0.99 3
1 3
0.98 3
0.98 4
1.01 4
1.02 4
0.99 4
0.97 4
1.02 5
0.99 5
1.04 5
1.07 5
0.98 5
1.05 6
0.98 6
0.96 6
0.91 6
1.02 6
0.92 7
0.95 7
1 7
0.99 7
1.01 7
1.06 8
0.98 8
0.98 8
1.04 8
1 8
0.97 9
0.99 9
0.99 9
0.98 9
1.01 9
1 10
0.96 10
1.02 10
1.03 10
0.99 10
any help is really appreciated.
thanks