Learn R Programming

SSDforR (version 1.4.1)

IRD: Improvement Rate Difference (IRD) calculation and line

Description

This effect size function will compute the IRD and display a graph in the graph window. The user will be prompted to enter a value for a reference line, identify the number of intervention points remaining and the number of baseline data points that would be needed to be removed in order to eliminate all overlap or ties between phases.

Usage

IRD(behavior, phaseX, v1, v2)

Arguments

behavior
behavior variable
phaseX
phase variable
v1
first phase letter (e.g., "A")
v2
second phase letter (e.g., "B")

References

{Bloom, M., Fischer, J. & Orme, J.G. (2009). Evaluating practice: Guidelines for the accountable professional (6th ed.). New York: Pearson.

Parker, R.I. & Hagan-Burke, S. (2007). Median-based overlap analysis for single case data: A second study. Behavior Modification, 31(6), 919-936.

} {Go to www.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")
IQRbandgraph(cry,pcry,"A","week","amount","Crying")
IRD(cry,pcry,"A","B")

Run the code above in your browser using DataLab