SD1: 1-standard deviation band graph

Description Usage Arguments Author(s) References Examples

View source: R/SD1.R

Description

Produces graph for all phases with mean and one standard deviation bands displayed for a comparison phase across all phases. Output in the Console displays the sd, the mean, and values for the sd bands.

Usage

1
SD1(behavior, phaseX, v1, ABxlab, ABylab, ABmain)

Arguments

behavior

behavior variable

phaseX

phase variable

v1

letter for phase variable stats are base upon in quotation marks (e.g., "A")

ABxlab

x-axis label in quotation marks (e.g., "week")

ABylab

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

ABmain

main title label in quotation marks (e.g., "Crying")

Author(s)

Charles Auerbach, PhD & Wendy Zeitlin, PhD; Yeshiva University, Wurzweiler School of Social Work

References

Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. p51, p79, p132 Go to www.ssdanalysis for more information.

Examples

1
2
3
4
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")
SD1(cry,pcry,"A","week","amount","Crying")

Example output

Loading required package: psych
Loading required package: TTR
Loading required package: MASS
Loading required package: tcltk
Loading required package: TSA

Attaching package: 'TSA'

The following objects are masked from 'package:stats':

    acf, arima

The following object is masked from 'package:utils':

    tar

Warning message:
no DISPLAY variable so Tk is not available 
[1] "SD"   "1.05" "+1SD" "4.55" "mean" "3.5"  "-1SD" "2.45"

SSDforR documentation built on Oct. 7, 2018, 1:03 a.m.