retrodesign: Tools for Type S (Sign) and Type M (Magnitude) Errors

Provides tools for working with Type S (Sign) and Type M (Magnitude) errors, as proposed in Gelman and Tuerlinckx (2000) <> and Gelman & Carlin (2014) <>. In addition to simply calculating the probability of Type S/M error, the package includes functions for calculating these errors across a variety of effect sizes for comparison, and recommended sample size given "tolerances" for Type S/M errors. To improve the speed of these calculations, closed forms solutions for the probability of a Type S/M error from Lu, Qiu, and Deng (2018) <> are implemented. As of 1.0.0, this includes support only for simple research designs. See the package vignette for a fuller exposition on how Type S/M errors arise in research, and how to analyze them using the type of design analysis proposed in the above papers.

Version: 0.1.0
Depends: R (≥ 3.1.0)
Imports: graphics
Suggests: ggplot2, knitr, rmarkdown, gridExtra, testthat
Published: 2019-03-08
Author: Andrew Timm [cre, aut], Andrew Gelman [ctb, cph], John Carlin [ctb, cph]
Maintainer: Andrew Timm <timmandrew1 at>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README
CRAN checks: retrodesign results


Reference manual: retrodesign.pdf
Vignettes: An Introduction to Type S and M errors inHypothesis Testing


Package source: retrodesign_0.1.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): retrodesign_0.1.0.tgz, r-release (x86_64): retrodesign_0.1.0.tgz, r-oldrel: retrodesign_0.1.0.tgz


Please use the canonical form to link to this page.