Last data update: 2014.03.03

R: Function to plot mcusum chart
mqcs.mcusumR Documentation

Function to plot mcusum chart

Description

This function is used to compute statistics required by the mcusum chart.

Usage

mqcs.mcusum(x, ...)

## Default S3 method:
mqcs.mcusum(x, data.name = NULL, Xmv = NULL, S = NULL,
  k = 0.5, h = 5.5, method = "sw", plot = FALSE, ...)

## S3 method for class 'mqcd'
mqcs.mcusum(x, Xmv = NULL, S = NULL, k = 0.5, h = 5.5,
  method = "sw", plot = FALSE, ...)

Arguments

x

an R object (used to select the method). See details.

...

arguments passed to or from methods.

Xmv

is the mean vector. It is only specified for Phase II or when the parameters of the distribution are known.

S

is the sample covariance matrix. It is only used for Phase II or when the parameters of the distribution are known.

k

is a constant used in MCUSUM chart. Frequently k = 0.5

h

is a constant used in MCUSUM chart. Usually h = 5.5

method

Is the method employed to compute the covatiance matrix in individual observation case. Two methods are used "sw" for compute according to (Sullivan,Woodall 1996a) and "hm" by (Holmes,Mergen 1993)

plot

a logical value indicating should be plotted.

data.name

a string that specifies the title displayed on the plots. If not provided is taken from the name of the object data.

Author(s)

Edgar Santos-Fernandez

Examples

##
##  Continuous data
##
library(qcr)
data(dowel1)
str(dowel1)
data.mqcd <- mqcd(dowel1)
res.mqcs <- mqcs.mcusum(data.mqcd)
summary(res.mqcs)
plot(res.mqcs, title =" MCUSUM Control Chart for dowel1")

Results