This function calculates indices of the Tau-U family as proposed by Parker et al. (2011).
tau_u(
data,
dvar,
pvar,
tau_method = "b",
method = "complete",
phases = c(1, 2),
meta_method = "random",
continuity_correction = FALSE
)tauUSC(...)
A single-case data frame. See scdf
to learn about this format.
Character string with the name of the dependent variable. Defaults to the attributes in the scdf file.
Character string with the name of the phase variable. Defaults to the attributes in the scdf file.
Character with values "a" or "b" (default) indicating whether Kendall Tau A or Kendall Tau B is applied.
"complete"
(default) or "parker"
. The latter
calculates the number of possible pairs as described in Parker et al. (2011)
which might lead to tau-U values greater than 1.
A vector of two characters or numbers indicating the two
phases that should be compared. E.g., phases = c("A","C")
or
phases = c(2,4)
for comparing the second to the fourth phase. Phases
could be combined by providing a list with two elements. E.g., phases
= list(A = c(1,3), B = c(2,4))
will compare phases 1 and 3 (as A) against 2
and 4 (as B). Default is phases = c("A","B")
.
Character string. If set "random", a random-effect meta-analysis is calculated. If set "fixed", a fixed-effect meta-analysis is calculated.
If TRUE, a continuity correction is applied for calculating p-values of correlations. This parameter is not yet implemented.
Further arguments passed to the function.
A data frame containing statistics from the Tau-U family, including: Pairs, positive and negative comparisons, S, and Tau
The matrix of comparisons used for calculating the statistics.
Tau-U value.
Tau-U is an inconsistently operationalized construct. Parker et al.
(2011) describe a method which may result in Tau-U lager than 1.
A different implementation of the method
(provided at http://www.singlecaseresearch.org/calculators/tau-u) uses
tau-b (instead of tau-a as in the original formulation by Parker).
Bossart et. al (2018) describe inconsistencies in the results from this
implementation as well. Another problems lies in the calculation in overall
Tau-U values from several single cases. The function presented here
applies a metaanalyzes to gain the overall values. Each tau value is
weighted by the inverse of the variance (ie. the tau standard error).
Tau values are not converted to Pearson r values. The argument
"meta_method"
calculates a random-effect model ("random") or
a fixed effect model ("fixed").
Brossart, D. F., Laird, V. C., & Armstrong, T. W. (2018). Interpreting Kendall<U+2019>s Tau and Tau-U for single-case experimental designs. Cogent Psychology, 5(1), 1<U+2013>26. https://doi.org/10.1080/23311908.2018.1518687.
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.
Other overlap functions:
corrected_tau()
,
nap()
,
overlap()
,
pand()
,
pem()
,
pet()
,
pnd()
# NOT RUN {
tau_u(Grosche2011$Eva)
## Replicate tau-U calculation from Parker et al. (2011)
bob <- scdf(c(A = 2, 3, 5, 3, B = 4, 5, 5, 7, 6), name = "Bob")
res <- tau_u(bob, method = "parker", tau_method = "a")
print(res, complete = TRUE)
## Request tau-U for all single-cases from the Grosche2011 data set
tau_u(Grosche2011)
# }
Run the code above in your browser using DataLab