You are on page 1of 3

Untitled

ishaan

01/02/2022
data<-read.csv(file.choose())
attach(data)
library(qcc)

## Package 'qcc' version 2.7

## Type 'citation("qcc")' for citing this R package in publications.

qcc(data,"R",nsigmas=3)

## List of 11
## $ call : language qcc(data = data, type = "R", nsigmas = 3)
## $ type : chr "R"
## $ data.name : chr "data"
## $ data : int [1:20, 1:5] 53 52 59 55 43 65 54 54 57 62 ...
## ..- attr(*, "dimnames")=List of 2
## $ statistics: Named int [1:20] 14 18 9 18 24 6 13 12 20 13 ...
## ..- attr(*, "names")= chr [1:20] "1" "2" "3" "4" ...
## $ sizes : int [1:20] 5 5 5 5 5 5 5 5 5 5 ...
## $ center : num 13
## $ std.dev : num 5.59
## $ nsigmas : num 3
## $ limits : num [1, 1:2] 0 27.5
## ..- attr(*, "dimnames")=List of 2
## $ violations:List of 2
## - attr(*, "class")= chr "qcc"

qcc(data,"xbar",nsigmas = 3)

## List of 11
## $ call : language qcc(data = data, type = "xbar", nsigmas = 3)
## $ type : chr "xbar"
## $ data.name : chr "data"
## $ data : int [1:20, 1:5] 53 52 59 55 43 65 54 54 57 62 ...
## ..- attr(*, "dimnames")=List of 2
## $ statistics: Named num [1:20] 60.8 53.4 58.4 54.6 57.2 64 61.2 60.6 58.8
61.2 ...
## ..- attr(*, "names")= chr [1:20] "1" "2" "3" "4" ...
## $ sizes : int [1:20] 5 5 5 5 5 5 5 5 5 5 ...
## $ center : num 58.7
## $ std.dev : num 5.59
## $ nsigmas : num 3
## $ limits : num [1, 1:2] 51.2 66.2
## ..- attr(*, "dimnames")=List of 2
## $ violations:List of 2
## - attr(*, "class")= chr "qcc"
X<-data[-c(11,12,13,14,15,16,17,19,20),]
qcc(X,"xbar",nsigmas = 3)

## List of 11
## $ call : language qcc(data = X, type = "xbar", nsigmas = 3)
## $ type : chr "xbar"
## $ data.name : chr "X"
## $ data : int [1:11, 1:5] 53 52 59 55 43 65 54 54 57 62 ...
## ..- attr(*, "dimnames")=List of 2
## $ statistics: Named num [1:11] 60.8 53.4 58.4 54.6 57.2 64 61.2 60.6 58.8
61.2 ...
## ..- attr(*, "names")= chr [1:11] "1" "2" "3" "4" ...
## $ sizes : Named int [1:11] 5 5 5 5 5 5 5 5 5 5 ...
## ..- attr(*, "names")= chr [1:11] "1" "2" "3" "4" ...
## $ center : num 58.5
## $ std.dev : num 6.06
## $ nsigmas : num 3
## $ limits : num [1, 1:2] 50.4 66.7
## ..- attr(*, "dimnames")=List of 2
## $ violations:List of 2
## - attr(*, "class")= chr "qcc"

You might also like