Learn R Programming

scan (version 0.20)

tauUSC: Tau-U for single-case data

Description

This function calculates indices of the Tau-U family as proposed by Parker et al. (2011).

Usage

tauUSC(data, ties.method = "omit")

Arguments

data

A single-case data frame.

ties.method

Defines how to handle ties. "omit" excludes all ties from the calculation. "positive" counts all ties as positive comparisons, while "negative" counts them as negative comparisons.

Value

table

A data frame containing statistics from the Tau-U family, including: Pairs, positive and negative comparisons, S, and Tau

matrix

The matrix of comparisons used for calculating the statistics.

tau_u

Tau-U 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, 284-299.

Examples

Run this code
# NOT RUN {
## Calculate tau-U for the example from Parker et al. (2011)
bob <- makeSCDF(c(2, 3, 5, 3, 4, 5, 5, 7, 6), B.start = 5)
tauUSC(bob)

## Calculate tau-U with ties counted as positive
tauUSC(Grosche2011$Eva, ties.method = "positive")

## Request tau-U for all single-cases fom the Grosche2011 data
lapply(Grosche2011, tauUSC)
# }

Run the code above in your browser using DataLab