Learn R Programming

TOSTER: Two one-sided tests (TOST) equivalence testing

An R package and jamovi module for equivalence testing

Please see the package's website for updates, vignettes, and other details about the package.

Background

Scientists should be able to provide support for the absence of a meaningful effect. Currently, researchers often incorrectly conclude an effect is absent based a non-significant result. A widely recommended approach within a frequentist framework is to test for equivalence. In equivalence tests, such as the two one-sided tests (TOST) procedure implemented in this package, an upper and lower equivalence bound is specified based on the smallest effect size of interest. The TOST procedure can be used to statistically reject the presence of effects large enough to be considered worthwhile. Extending your statistical tool kit with equivalence tests is an easy way to improve your statistical and theoretical inferences.

Installation

The developmental version, and most up-to-date, can be installed from GitHub:

devtools::install_github("Lakens/TOSTER")

The stable release can be downloaded from CRAN:

install.packages("TOSTER")

Educational Material

For educational material on setting the smallest effect size of interest and equivalence tests, see week 2 of the MOOC "Improving Your Statistical Questions". https://www.coursera.org/teach/improving-statistical-questions.

For an introduction to equivalence testing and the TOSTER package (this is recommended reading material to understand the basics of equivalence tests) see: Lakens, D. (2017). Equivalence Tests: A Practical Primer for t Tests, Correlations, and Meta-Analyses. Social Psychological and Personality Science, 8(4), 355–362. https://doi.org/10.1177/1948550617697177

For an in-depth description of the newer functions in the TOSTER package since Lakens 2017 see: Caldwell, A. R. (2022). Exploring equivalence testing with the updated TOSTER R Package. PsyArXiv. https://doi.org/10.31234/osf.io/ty8de

For a tutorial paper (this is the recommended reading material if you want to start using equivalence testing) see: Lakens, D., Scheel, A. M., & Isager, P. M. (2018). Equivalence Testing for Psychological Research: A Tutorial. Advances in Methods and Practices in Psychological Science, 1(2), 259–269. https://doi.org/10.1177/2515245918770963

For a comparison of Bayes factors and equivalence test (they turn out to lead to very similar inferences when used well) see: Lakens, D., McLatchie, N., Isager, P. M., Scheel, A. M., & Dienes, Z. (2018). Improving Inferences about Null Effects with Bayes Factors and Equivalence Tests. The Journals of Gerontology: Series B. https://doi.org/10.1093/geronb/gby065

For a comparison of equivalence tests and second generation p-values (equivalence tests are probably a better tool) see: Lakens, D., & Delacre, M. (2019). Equivalence Testing and the Second Generation P-Value. Meta-Psychology. https://doi.org/10.31234/osf.io/7k6ay

For a general introduction to the importance of being able to support 'null' effects, and ways to do this, including equivalence tests, bayesian estimation, and bayes factors, see: Harms, C., & Lakens, D. (2018). Making "null effects" informative: Statistical techniques and inferential frameworks. Journal of Clinical and Translational Research, (3), 382–393. https://doi.org/10.18053/jctres.03.2017S2.007

Copy Link

Version

Install

install.packages('TOSTER')

Monthly Downloads

1,514

Version

0.8.3

License

GPL-3

Maintainer

Last Published

May 8th, 2024

Functions in TOSTER (0.8.3)

boot_ses_calc

Bootstrap SES Calculation
boot_cor_test

Bootstrapped correlation coefficients
boot_log_TOST

Bootstrapped TOST with log transformed t-tests
boot_t_TOST

Bootstrapped TOST with t-tests
brunner_munzel

Brunner-Munzel Test
boot_compare_cor

Comparing Correlations between independent studies with bootstrapping
boot_smd_calc

Bootstrapped SMD Calculation
boot_compare_smd

Comparing SMDs between ndependent studies with bootstrapping
compare_cor

Comparing two independent correlation coefficients
boot_t_test

Bootstrapped t-test
compare_smd

Comparing SMDs between independent studies
corsum_test

Association/Correlation Test from Summary Statistics
equ_ftest

Equivalence Test using an F-test
extract_r_paired

Extract Paired Correlation
dataTOSTone

TOST One Sample T-Test
dataTOSTpaired

TOST Paired Samples T-Test
dataTOSTr

TOST Correlation
datatosttwoprop

TOST Two Proportions
equ_anova

Equivalence Test for ANOVA Results
dataTOSTtwo

TOST Independent Samples T-Test
plot_cor

Plot correlation coefficients
log_TOST

TOST with log transformed t-tests
plot_pes

Plot partial eta-squared
plot_smd

Plot Distribution of a SMD
powerTOSTone

Power One Sample t-test
powerTOSTpaired

Power Paired Sample t-test
hawthorne

Data
htest-helpers

Helpers for htest objects
powerTOSTtwo

Power Two Sample t-test
power_eq_f

F-test Power
ses_calc

SES Calculation
power_z_cor

Power Calculations for Correlations
rbs

Non-parametric standardized effect sizes (replicates of ses_calc)
simple_htest

One, two, and paired samples hypothesis tests
smd_calc

SMD Calculation
power_twoprop

TOST Power for Tests of Two Proportions
t_TOST

TOST with t-tests
wilcox_TOST

TOST with Wilcoxon-Mann-Whitney tests
power_t_TOST

Power calculations for TOST for t-tests
z_cor_test

Test for Association/Correlation Between Paired Samples
tsum_TOST

TOST with t-tests from Summary Statistics
twoprop_test

Test of Proportions between 2 Independent Groups
TOSTER-package

TOSTER: Two One-Sided Tests (TOST) Equivalence Testing
TOSTmeta

TOST function for meta-analysis
TOSTtwo

TOST function for an independent t-test (Cohen's d)
TOSTnp-methods

Methods for TOSTnp objects
TOSTpaired

TOST function for a dependent t-test (Cohen's dz)
TOSTone

TOST function for a one-sample t-test (Cohen's d)
TOSTr

TOST function for a correlations
TOSTtwo.prop

TOST function for two proportions (raw scores)
TOSTt-methods

Methods for TOSTt objects
as_htest

Convert to class 'htest'