Tau_U: Tau-U

Description Usage Arguments Details Value References Examples

View source: R/non-overlap-measures.R

Description

Calculates the Tau-U index with baseline trend correction (Parker, Vannest, Davis, & Sauber 2011).

Usage

1
2
3
4
5
6
7
8
Tau_U(
  A_data,
  B_data,
  condition,
  outcome,
  baseline_phase = unique(condition)[1],
  improvement = "increase"
)

Arguments

A_data

vector of numeric data for A phase, sorted in order of session number. Missing values are dropped.

B_data

vector of numeric data for B phase. Missing values are dropped.

condition

vector identifying the treatment condition for each observation in the series.

outcome

vector of outcome data for the entire series.

baseline_phase

character string specifying which value of condition corresponds to the baseline phase. Defaults to first observed value of condition.

improvement

character string indicating direction of improvement. Default is "increase".

Details

Tau-U is an elaboration of the Tau that includes a correction for baseline trend. It is calculated as Kendall's S statistic for the comparison between the phase B data and the phase A data, plus Kendall's S statistic for the A phase observations, scaled by the product of the number of observations in each phase.

Note that A_data must be ordered by session number.

Value

Numeric value

References

Parker, R. I., Vannest, K. J., Davis, J. L., & Sauber, S. B. (2011). Combining nonoverlap and trend for single-case research: Tau-U. Behavior Therapy, 42(2), 284–299. doi:doi: 10.1016/j.beth.2010.08.006

Examples

1
2
3
A <- c(20, 20, 26, 25, 22, 23)
B <- c(28, 25, 24, 27, 30, 30, 29)
Tau_U(A_data = A, B_data = B)

SingleCaseES documentation built on Sept. 30, 2021, 5:09 p.m.