Re: [R] help on qcc

From: David Winsemius <dwinsemius_at_comcast.net>
Date: Mon, 3 Dec 2007 14:24:12 +0000 (UTC)

Thorsten Muehge <MUEHGE_at_de.ibm.com> wrote in news:OF7566C5AF.C84AC5C2-ONC12573A6.0036ACCB-C12573A6.003D04FA_at_de.ibm.com

> Hello R Experts,
> I started to work with the qcc package and it wprks quite nicely.
>
> Heres My Code:
> n <-
> c(55,5,94,25,10,15,15,40,44,34,90,114,204,37,30,28,12,68,64,29,24,14,31
> ,16,62,45,55,20,24,14,9,19,76,57,55,42,6,
> 54,32,117,19,32,9,11,13,31,27,33,44,28) x <-
> c(6,0,30,5,2,1,4,5,2,9,12,24,64,3,9,21,9,48,15,4,3,0,1,0,6,
> 7,2,0,3,2,0,5,1,2,6,9,1,6,2,0,1,4,8,0,1,1,3,0,0,0)
>
> qcc(x,type="p",size=n,title = "p-Charts Failed data Transmission");
>
> I see the numbers beyond limits and the number of violating runs.
>
> How can I switch of the number of violating runs?
> How can I specify the number of violating runs?

I am not an experienced user of qcc, (nor am I an expert), but I doubt that very many of the other readers of r-help are users of qcc either. Looking at the code of qcc and then at help for the package, the number of violating runs is determined through the shewhart.rules() function and the gcc.options$("run.length") argument. It looks as though you could send arguments to the rules= parameter when calling qcc() that would override the default. Looking further at the package documantation and the qcc.options() function my suggestion (which I tested and seems to have the effect I believe you requested) would be to try something like:

qcc.options("run.length"=5) #before the qcc(...) invocation

....and if you wanted to "turn it off", then set "run.length" to something impossibly high.

qcc.options("run.length"=1000) # number of violating runs becomes zero

If that does not work, then another method for getting help with a package is to send an email to the package maintainer.

-- 
David Winsemius

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 03 Dec 2007 - 14:30:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 03 Dec 2007 - 15:30:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.