Learn R Programming

SSDforR (version 1.0)

Xmrchart: SPC XMR-chart

Description

the X-mR-chart can be use to detect changes within and between phases. This chart should not, however, be used when there is a trend in the data. It can be used, though, when you are not using samples of data, but individual data points.

Usage

Xmrchart(behavior, phaseX, v1, bandX, ABxlab, ABylab, ABmain)

Arguments

behavior
behavior variable
phaseX
phase variable
v1
phase bands are based upon i.e. "A"
bandX
number of SDs i.e 1,2,or 3
ABxlab
x labels
ABylab
y labels
ABmain
main title

References

go to www.ssdanalysis.com

Examples

Run this code
cry<-c(3, 4, 2, 5, 3, 4, NA, 2, 2, 3, 2, 1, 2, NA, 2, 2, 1, 2, 1, 0, 0, 0)
pcry<-c("A", "A", "A", "A", "A", "A", NA, "B", "B", "B", "B", "B", "B", NA, "B1", "B1", "B1", "B1", "B1", "B1", "B1", "B1")
Xmrchart(cry, pcry, "A", 2, "week", "amoun", "X-MR-chart")

Run the code above in your browser using DataLab