Last data update: 2014.03.03

R: S Control Chart.
cchart.SR Documentation

S Control Chart.

Description

This function builds a S control chart.

Usage

cchart.S(x, type = "n", m = NULL)

Arguments

x

The data to be plotted.

type

A character string specifying the type of S control chart to be plotted where "n" plots a S chart with normalized probability limits and "e" plots a S chart with exact limits.

m

The sample sizes. Only necessary in the control chart with exact (probability) limits.

Details

The exact limits are the alpha/2 and 1-alpha/2 quantiles of the S distribution which is proportional to the square root of a chi-square distribution.

Value

Return a S control chart.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa

Examples

data(softdrink)
#S chart with normalized probability limits
cchart.S(softdrink, type = "n")
#S chart with exact probability limits
cchart.S(softdrink, type = "e", 10)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(IQCC)
Loading required package: qcc
Package 'qcc', version 2.6
Type 'citation("qcc")' for citing this R package in publications.
Loading required package: MASS
Loading required package: micEcon

If you have questions, suggestions, or comments regarding one of the 'micEcon' packages, please use a forum or 'tracker' at micEcon's R-Forge site:
https://r-forge.r-project.org/projects/micecon/
Loading required package: miscTools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IQCC/cchart.S.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cchart.S
> ### Title: S Control Chart.
> ### Aliases: cchart.S
> 
> ### ** Examples
> 
> data(softdrink)
> #S chart with normalized probability limits
> cchart.S(softdrink, type = "n")
List of 11
 $ call      : language qcc(data = x, type = "S")
 $ type      : chr "S"
 $ data.name : chr "x"
 $ data      : num [1:15, 1:10] 2.5 0 1.5 0 0 1 1 0 -2 -0.5 ...
  ..- attr(*, "dimnames")=List of 2
 $ statistics: Named num [1:15] 1.333 0.926 1.125 1.174 0.471 ...
  ..- attr(*, "names")= chr [1:15] "1" "2" "3" "4" ...
 $ sizes     : int [1:15] 10 10 10 10 10 10 10 10 10 10 ...
 $ center    : num 1.09
 $ std.dev   : num 1.12
 $ nsigmas   : num 3
 $ limits    : num [1, 1:2] 0.31 1.88
  ..- attr(*, "dimnames")=List of 2
 $ violations:List of 2
 - attr(*, "class")= chr "qcc"
> #S chart with exact probability limits
> cchart.S(softdrink, type = "e", 10)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>