Xmrchart {SSDforR} | R Documentation |
SPC XMR-chart
Description
The X-mR-chart can be use to detect changes within and between phases. Can be used with individual data, but it is not appropriate for group data.
Usage
Xmrchart(behavior, phaseX, v1, bandX, ABxlab, ABylab, ABmain)
Arguments
behavior |
behavior variable |
phaseX |
phase variable |
v1 |
phase bands are based upon in quotation marks (e.g., "A") |
bandX |
number of standard deviations desired (e.g., 2) |
ABxlab |
x-axis label in quotation marks (e.g., "week") |
ABylab |
y-axis label in quotation marks (e.g., "amount") |
ABmain |
main title for chart in quotation marks (e.g., "X-mR-Chart") |
Author(s)
Charles Auerbach, PhD Wurzweiler School of Social Work Wendy Zeitlin, PhD Montclair State University
References
Bloom, M., Fischer, J. & Orme, J.G. (2009). Evaluating practice: Guidelines for the accountable professional (6th ed.). New York: Pearson.
Orme, J. & Cox, M.E. (2001). Analyzing single-subject design data using statistical proces control charts. Social Work Research, 25(2), 115-127.
Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. P75-76
Go to www.ssdanalysis.com for more information.
Examples
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", "amount", "X-mR-Chart")