Skip to content

❗ This is a read-only mirror of the CRAN R package repository. retrodesign — Tools for Type S (Sign) and Type M (Magnitude) Errors. Homepage: https://github.com/andytimm/retrodesign Report bugs for this package: https://github.com/andytimm/retrodesign/issues

License

Notifications You must be signed in to change notification settings

cran/retrodesign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

retrodesign

CRAN_Status_Badge

Tools for calculating and working with Gelman et al's Type S (sign), and M (magnitude or exaggeration ratio) errors for analyzing hypothesis tests in R.

Features:

  • Functions for calculating Power and Type S/M errors across variety of effect sizes, building on code provided in Gelman and Carlin (2014, see below).

  • Graphics function for visualizing these errors with or without ggplot

  • Implementation of Lu et al's (2018, see below) closed form solution for Type M error, providing a speed-up.

Usage

You can install retrodesign with:

install.packages("retrodesign")

You can find an online version of retrodesign's vignette on my website, which provides an introduction to both retrodesign and Type S/M errors.

More Reading on Type S/M Errors

  1. Gelman and Tuerlinckx's Type S error rates for classical and Bayesian single and multiple comparisons procedures (2000): A comparison of the properties of Type S errors of frequentist and Bayesian confidence statements. Useful for how this all plays out in a Bayesian context. Bayesian confidence statements have the desirable property of being more conservative than frequentist ones.
  2. Gelman and Carlin's Assessing Type S and Type M Errors (2014): Gelman and Carlin compare their suggested design analysis, as we've written about above, to more traditional design analysis, through several examples, and discuss the desirable properties it has in more depth than I do here. It is also the source of the original retrodesign() function, which I re-use in the package with permission.
  3. Lu et al's A note on Type S/M errors in hypothesis testing (2018): Lu and coauthors go further into the mathematical properties of Type S/M errors, and prove the closed form solutions implemented in retrodesign.
  4. McShane et al's Abandon Statistical Significance (2017): If you want a starting point on the challenges with NHST that have led many statisticians to argue for abandoning NHST all together, and starting points for alternative ways of doing science.

About

❗ This is a read-only mirror of the CRAN R package repository. retrodesign — Tools for Type S (Sign) and Type M (Magnitude) Errors. Homepage: https://github.com/andytimm/retrodesign Report bugs for this package: https://github.com/andytimm/retrodesign/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages