Last data update: 2014.03.03

R: X-bar Shewhart Control Chart for phase II.
cchart.Xbar2R Documentation

X-bar Shewhart Control Chart for phase II.

Description

Builds the x-bar control chart for phase II.

Usage

cchart.Xbar2(x, x2bar, sigma, sizes)

Arguments

x

The data to be plotted.

x2bar

The mean of means.

sigma

The standar deviation of the data.

sizes

A value or a vector of values specifying the sample sizes associated with each group.

Details

To use this function it is necessary to have the output given by the function XbarI.

Value

Return a x-bar control chart for phase II.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa

See Also

cchart.Xbar1

Examples

data(pistonrings)
stat <- cchart.Xbar1(pistonrings[1:25, ])
cchart.Xbar2(pistonrings[26:40, ], stat[[1]][1], stat[[1]][2])

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.Xbar2.Rd_%03d_medium.png", width=480, height=480)
> ### Name: cchart.Xbar2
> ### Title: X-bar Shewhart Control Chart for phase II.
> ### Aliases: cchart.Xbar2
> 
> ### ** Examples
> 
> data(pistonrings)
> stat <- cchart.Xbar1(pistonrings[1:25, ])
> cchart.Xbar2(pistonrings[26:40, ], stat[[1]][1], stat[[1]][2])
List of 11
 $ call      : language qcc(data = x, type = "xbar", center = x2bar, std.dev = sigma)
 $ type      : chr "xbar"
 $ data.name : chr "x"
 $ data      : num [1:15, 1:5] 74 74 74 74 74 ...
  ..- attr(*, "dimnames")=List of 2
 $ statistics: Named num [1:15] 74 74 74 74 74 ...
  ..- attr(*, "names")= chr [1:15] "26" "27" "28" "29" ...
 $ sizes     : Named int [1:15] 5 5 5 5 5 5 5 5 5 5 ...
  ..- attr(*, "names")= chr [1:15] "26" "27" "28" "29" ...
 $ center    : num 74
 $ std.dev   : num 0.00979
 $ nsigmas   : num 3
 $ limits    : num [1, 1:2] 74 74
  ..- attr(*, "dimnames")=List of 2
 $ violations:List of 2
 - attr(*, "class")= chr "qcc"
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>