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.
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.
retrodesign
.Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.