An implementation of Bayesian model-averaged t-tests that allows
users to draw inferences about the presence versus absence of an effect,
variance heterogeneity, and potential outliers. The 'RoBTT' package estimates
ensembles of models created by combining competing hypotheses and applies
Bayesian model averaging using posterior model probabilities. Users can
obtain model-averaged posterior distributions and inclusion Bayes factors,
accounting for uncertainty in the data-generating process
(Maier et al., 2024,
This package provides an implementation of Bayesian model-averaged t-tests that allows users to draw inference about the presence vs absence of the effect, heterogeneity of variances, and outliers. The RoBTT packages estimates model ensembles of models created as a combination of the competing hypotheses and uses Bayesian model-averaging to combine the models using posterior model probabilities. Users can obtain the model-averaged posterior distributions and inclusion Bayes factors which account for the uncertainty in the data generating process. User can define a wide range of informative priors for all parameters of interest. The package provides convenient functions for summary, visualizations, and fit diagnostics.
See our manuscripts for more information about the methodology:
We also prepared vignettes that illustrate functionality of the package:
The release version can be installed from CRAN:
install.packages("RoBTT")
and the development version of the package can be installed from GitHub:
devtools::install_github("FBartos/RoBTT")
Godmann, H. R., Bartoš, F., & Wagenmakers, E.-J. (2024). Truncating the likelihood allows outlier exclusion without overestimating the evidence in the Bayes factor t-test. https://doi.org/10.31234/osf.io/j9f3s
Maier, M., Bartoš, F., Quintana, D. S., Bergh, D. van den, Marsman, M., Ly, A., & Wagenmakers, E.-J. (2024). Model-averaged Bayesian t-tests. Psychonomic Bulletin & Review. https://doi.org/10.3758/s13423-024-02590-5