Learn R Programming

SSDforR (version 1.5.7)

Cchart: SPC C-chart

Description

This function builds a C-chart and is used with individual (i.e., ungrouped) data. A space separates each phase. For use when the outcome variable is a count (i.e., ratio-level) variable.

Usage

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

Arguments

behavior

behavior variable

phaseX

phase variable

v1

phase letter analysis is based upon in quotation marks (e.g., "A")

bandX

number of standard deviations desired (e.g., 2)

ABxlab

label for x-axis between quotation marks (e.g., "weeks")

ABylab

label for y-axis between quotation marks (e.g., "amount")

ABmain

main title between quotation marks (e.g., Crying)

References

Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. p77, p140

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.

Go to www.ssdanalysis.com for more information.

Examples

Run this code
# NOT RUN {
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")
Cchart(cry,pcry,"A",2,"week","amount","Crying")
# }

Run the code above in your browser using DataLab