View source: R/non-overlap-measures.R
Tau | R Documentation |
Calculates the Tau (non-overlap) index (Parker, Vannest, Davis, & Sauber 2011).
Tau(
A_data,
B_data,
condition,
outcome,
baseline_phase = NULL,
intervention_phase = NULL,
improvement = "increase",
SE = "unbiased",
confidence = 0.95,
trunc_const = FALSE
)
A_data |
vector of numeric data for A phase. 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
|
intervention_phase |
character string specifying which value of
|
improvement |
character string indicating direction of improvement. Default is "increase". |
SE |
character value indicating which formula to use for calculating the
standard error of NAP, with possible values |
confidence |
confidence level for the reported interval estimate. Set to
|
trunc_const |
logical value indicating whether to return the truncation constant used to calculate the standard error. |
Tau (non-overlap) a linear re-scaling of NAP
to the
range [-1,1], with a null value of 0.
Standard errors and confidence intervals for Tau are based on
transformations of the corresponding SEs and CIs for NAP
.
A list containing the estimate, standard error, and/or confidence interval.
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:\Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.beth.2010.08.006")}
A <- c(20, 20, 26, 25, 22, 23)
B <- c(28, 25, 24, 27, 30, 30, 29)
Tau(A_data = A, B_data = B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.