mqcs.mewma: Function to plot mewma chart

View source: R/mqcs.mewma.r

mqcs.mewmaR Documentation

Function to plot mewma chart

Description

This function is used to compute statistics required by the Multivariate Exponentially Weighted Moving Average (MEWMA) chart.

Usage

mqcs.mewma(x, ...)

## Default S3 method:
mqcs.mewma(
  x,
  data.name = NULL,
  limits = NULL,
  Xmv = NULL,
  S = NULL,
  method = "sw",
  plot = FALSE,
  ...
)

## S3 method for class 'mqcd'
mqcs.mewma(
  x,
  limits = NULL,
  Xmv = NULL,
  S = NULL,
  lambda = 0.1,
  method = "sw",
  plot = FALSE,
  ...
)

Arguments

x

An object of class 'mqcd'

...

Arguments passed to or from methods.

data.name

A string that specifies the title displayed on the plots. If not provided it is taken from the name of the object x.

limits

A two-values vector specifying the control limits.

Xmv

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

S

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

method

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

plot

Logical value. If TRUE a mewma chart should be plotted.

lambda

The smoothing constant. Only values of 0.1, 0.2,...,0.9 are allowed.

Author(s)

Edgar Santos-Fernandez

See Also

mqcd, mqcs

Examples


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

mflores72000/qcr documentation built on July 1, 2023, 9:17 p.m.