Learn R Programming

SSDforR (version 1.0)

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 mean SD are base upon
bandX
number of standard deviation i.e. 2
ABxlab
x label between quotes "weeks"
ABylab
y label between quotes "amount"
ABmain
main title

References

Go to ssdanalysis.com for more information

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")
Cchart(cry,pcry,"A",2,"week","amount","Crying")

Run the code above in your browser using DataLab