Learn R Programming

qcr (version 1.4)

mstate.control: Multivariate process state

Description

This function removes observations from the sample which violates the rules of a process under control

Usage

mstate.control(x)

Arguments

x

Object mqcd (Multivariate Quality Control Statistical)

control

a logical value indicating whether the initial sample comes from a process under control.

Examples

Run this code
# NOT RUN {
##
##  Continuous data 
##
library(qcr)
set.seed(356)
x <- matrix(rnorm(66),ncol=3)
x <- rbind(x,matrix(rexp(66,100),ncol=3))
dim(x)
x <-mqcd(x)
str(x)
x <-mqcs.mewma(x)
str(x)
plot(x)
data.mqcs <- mstate.control(x)
x <-mqcs.mewma(data.mqcs)
plot(x)
# }

Run the code above in your browser using DataLab