Вы находитесь на странице: 1из 3

> data <- read.

csv("C:/Users/Cherif/Desktop/CHERO1/AUC/2ND Year/Summer 2016/342 Quality


and Process Control/LAB/5.Variable control charts/data.csv")
> View(data)
> attach(data)
> hagas<-qcc(data, type="xbar")
> summary(hagas)
Call:
qcc(data = data, type = "xbar")
xbar chart for data

Summary of group statistics:


Min. 1st Qu. Median Mean 3rd Qu. Max.
37.94 38.06 38.11 38.11 38.21 38.21
Group sample size: 10
Number of groups: 8
Center of group statistics: 38.10972
Standard deviation: 0.2867466

Control limits:
LCL UCL
37.83769 38.38175
> R<-qcc(data, type="R")
> summary(R)

Call:
qcc(data = data, type = "R")

R chart for data

Summary of group statistics:


Min. 1st Qu. Median Mean 3rd Qu. Max.
0.7601 0.8176 0.8651 0.8826 0.9301 1.0800

Group sample size: 10


Number of groups: 8
Center of group statistics: 0.8826059
Standard deviation: 0.2867466

Control limits:
LCL UCL
0.1969446 1.568267
> S<-qcc(data, type="S")
> summary(S)

Call:
qcc(data = data, type = "S")

S chart for data

Summary of group statistics:


Min. 1st Qu. Median Mean 3rd Qu. Max.
0.2850 0.2987 0.3151 0.3176 0.3280 0.3784

Group sample size: 10


Number of groups: 8
Center of group statistics: 0.3176127
Standard deviation: 0.3265406
Control limits:
LCL UCL
0.09010849 0.5451169
> value <- read.csv("C:/Users/Cherif/Desktop/CHERO1/AUC/2ND Year/Summer 2016/342 Quality
and Process Control/LAB/5.Variable control charts/value.csv")
> View(value)
> attach(value)
The following object is masked from problem53 (pos = 39):

samplenumber

The following object is masked from problem53 (pos = 40):

samplenumber

The following object is masked from problem53 (pos = 41):

samplenumber

The following object is masked from problem53 (pos = 42):

samplenumber

The following object is masked from problem53 (pos = 43):

samplenumber

> XV<-qcc.groups(reading,samplenumber)
> dim(XV)
[1] 8 10
> W<-qcc(XV[1:8,], type="xbar")
> summary(W)

Call:
qcc(data = XV[1:8, ], type = "xbar")

xbar chart for XV[1:8, ]

Summary of group statistics:


Min. 1st Qu. Median Mean 3rd Qu. Max.
37.95 38.07 38.13 38.11 38.18 38.21

Summary of group sample sizes:


sizes 8 9 10
counts 2 3 3

Number of groups: 8
Center of group statistics: 38.11266
Standard deviation: 0.2861031

Control limits:
LCL UCL
37.84124 38.38408
37.82656 38.39876
...
37.82656 38.39876
> SV<-qcc(XV[1:8,], type="S")
> summary(SV)

Call:
qcc(data = XV[1:8, ], type = "S")

S chart for XV[1:8, ]

Summary of group statistics:


Min. 1st Qu. Median Mean 3rd Qu. Max.
0.2650 0.2785 0.3087 0.3130 0.3387 0.3784

Summary of group sample sizes:


sizes 8 9 10
counts 2 3 3

Number of groups: 8
Center of group statistics: 0.3140857
Standard deviation: 0.3227746

Control limits:
LCL UCL
0.08920526 0.5389661
0.07603403 0.5521373
...
0.07603403 0.5521373