The SampleSizeWass package implements Bayesian sample size determination criteria based on the Wasserstein distance to ensure posterior consensus starting from different prior distributions. These criteria are introduced in Cianfriglia et al. (2023) and are available for the conjugate binomial and normal models.
SampleSizeWass is not on CRAN yet, but you can install it as follows:
install.packages("devtools")
devtools::install_github("michelecianfriglia/SampleSizeWass")
$\underline{\text{Attention!}}$ Windows users must have Rtools installed for this to work.
SampleSizeWass is licensed under the GNU General Public License Version 3.
To help develop the package, please follow the contribution guidelines.
If you have any questions, you can ask them in the discussion forum.
SampleSizeWass is released with a Contributor Code of Conduct. By contributing, you agree to abide by its terms.
To cite the SampleSizeWass package in publications, please use the following:
Cianfriglia, M. (2023). SampleSizeWass: Wasserstein-based sample size calculations. R package version 0.6, https://github.com/michelecianfriglia/SampleSizeWass
For LaTeX users, a BibTeX entry is
@Manual{SampleSizeWass-package,
title = {SampleSizeWass: Wasserstein-based sample size calculations},
author = {Michele Cianfriglia},
year = {2023},
note = {R package version 0.6},
url = {https://github.com/michelecianfriglia/SampleSizeWass}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.