Description Usage Arguments Author(s) References Examples

Conducts OLS regression for any phase. Coefficients and residuals are produced. Also a simple line graph for the specified phase with a regression line is displayed in the graph window.

1 | ```
Aregres(behavior, phaseX, v1)
``` |

`behavior` |
behavior variable |

`phaseX` |
phase variable |

`v1` |
phase letter (e.g., "A") |

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

Auerbach, Charles, and Zeitlin Wendy. SSD for R: An R Package for Analyzing Single-Subject Data. Oxford University Press, 2014. p34, p35-36, p134

Go to www.ssdanalysis.com for more information.

1 2 3 4 |

```
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
Call:
lm(formula = A ~ x1)
Residuals:
1 2 3 4 5 6
-0.1429 0.7143 -1.4286 1.4286 -0.7143 0.1429
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.0000 1.0556 2.842 0.0468 *
x1 0.1429 0.2711 0.527 0.6260
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 1.134 on 4 degrees of freedom
Multiple R-squared: 0.06494, Adjusted R-squared: -0.1688
F-statistic: 0.2778 on 1 and 4 DF, p-value: 0.626
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.