we_rules: Estimates the first four Western Electric Rules for detecting...

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Estimates the first four Western Electric Rules for detecting patterns, starting with under control X chart obtained in the sequence xrs_gr, X_it, R_it functions. At the same time, plots the X chart including the zones above and below the central limit. For last, a binary value for each rule is presented if at least one rule is violated, '1' for 'yes', 0 for 'no'.

Usage

1
we_rules(prev.results)

Arguments

prev.results

Its a list of previous results obtained by the xrs_gr function in the first iteration, or a list of results obtained in further iterations by the X_it, and if necessary by the R_it function.

Details

The previous results may say that the process is under control, but, it's a conclusion concerning the first Western Electric rule only.

Value

Resultados de analisis

A phrarse saying the process is or not under control

Las siguientes reglas tienen al menos un grupo que viola la regla

The conclussion about the Western Electric rules from 1 to 4, showing a binary response, '1' for 'yes', 0 for 'no'.

Author(s)

Erick Marroquin

References

Montgomery, D.C. (2005) Introduction to Statistical Quality Control, 5th ed. New York: John Wiley & Sons, ISBN 0-471-65631-3

SMALL, Bonnie B. (1956) Statistical Quality Control Handbook, 2th ed. Easton : Western Electric Co, Inc.

yhat The Yhat Blog. Machine Learning, Data Science, Engineering, [On line] http://blog.yhathq.com/posts/quality-control-in-r.html

See Also

xrs_gr, X_it, R_it, Cp_X

Examples

1
2
3
4
data(qqsugar)
results1<-xrs_gr(qqsugar)
results2<-R_it(results1)
we_rules(results2)

Example output

[1] "El proceso esta bajo control en Grafica X"
[1] "Proceso fuera de control en Grafica R"
[1] "Proceso fuera de control en Grafica S"
[1] "El proceso esta bajo control en Grafica X"
[1] "El proceso esta bajo control en Grafica R"
[1] "El proceso esta fuera de control por las Reglas Western Electric"
[1] "Las siguientes reglas tienen al menos un grupo que viola la regla"
$`Resultados del analisis`
Regla 1 Regla 2 Regla 3 Regla 4 
      0       1       0       0 

XRSCC documentation built on May 2, 2019, 5:11 a.m.