Cchart: SPC C-chart

View source: R/Cchart.R

CchartR Documentation

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)

Author(s)

Charles Auerbach, PhD Wurzweiler School of Social Work Wendy Zeitlin, PhD Montclair State University

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

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")

SSDforR documentation built on Nov. 24, 2023, 5:08 p.m.

Related to Cchart in SSDforR...