Professional Documents
Culture Documents
8 RCommander
8 RCommander
xls", rownames=FALSE,
header=TRUE, na="", sheet="Peso",
+ stringsAsFactors=TRUE)
> install.packages("qcc")
--- Please select a CRAN mirror for use in this session ---
package 'qcc' successfully unpacked and MD5 sums checked
> library(qcc)
> data(peso)
> head(peso)
> data(calidad)
> head(calidad)
> data(dataset7)
> head(dataset7)
> data(dataset7)
> data(Dataset7)
> head(Dataset7)
Muestra Peso
1 1 12.02
2 1 12.15
3 1 12.10
4 1 12.20
5 1 12.12
6 2 12.14
> peso=with(Dataset7,qcc.groups(peso,muestra))
> head(peso)
> head(Peso)
[,1] [,2] [,3] [,4] [,5]
1 12.02 12.15 12.10 12.20 12.12
2 12.14 12.07 11.99 11.98 12.02
3 12.04 12.09 12.20 12.05 12.24
4 12.14 12.25 12.09 12.07 11.96
5 12.17 12.04 11.97 11.88 12.05
6 11.90 11.91 12.05 12.07 11.86
> summary(q1)
Call:
qcc(data = Peso, type = "xbar")
Control limits:
LCL UCL
11.93074 12.17748
> summary(q2)
Call:
qcc(data = Peso, type = "R")
Control limits:
LCL UCL
0 0.4522616
> data(Dataset8)
> head(Dataset8)
Muestra D n
1 1 7 50
2 2 5 50
3 3 5 50
4 4 9 50
5 5 3 50
6 6 6 50
> attach(Dataset8)
> q3 = qcc(x, n, type="p")
> summary(q3)
> summary(q3)
Call:
qcc(data = D, type = "p", sizes = n)
p chart for D
Number of groups: 40
Center of group statistics: 0.1242424
Standard deviation: 0.3298579
Control limits:
LCL UCL
0 0.2641893
0 0.2641893
...
0 0.3049130
> data(Defectos)
> head(Defectos)
muestra x n
1 1 14 50
2 2 10 50
3 3 10 50
4 4 18 50
5 5 6 50
6 6 12 50
> attach(Defectos)
> summary(q3)
Call:
qcc(data = x, type = "p", sizes = n)
p chart for x
Control limits:
LCL UCL
0.06327857 0.4287214
0.06327857 0.4287214
...
0.06327857 0.4287214