Tools for Type S (Sign) and Type M (Magnitude) Errors
Overview
Provides tools for working with Type S (Sign) and Type M (Magnitude) errors, as proposed in Gelman and Tuerlinckx (2000) doi:10.1007/s001800000040 and Gelman & Carlin (2014) doi:10.1177/1745691614551642. 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) doi:10.1111/bmsp.12132 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.
Changes:
- Resolved a bug wherein the type M error for retrodesign was not equal to that of retrodesign_closed_form. A test case for this type of issue was to prevent this from occuring again.
From NEWS in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
- WARNING12 OK, 1 WARNING2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 14
- Examples that run
- 100%14 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 73
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/andytimm/retrodesign on 2026-10-11.
Dependencies
Installing retrodesign adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.2.2Latest
- unarchivedReturned to CRAN2023-11-02
- 0.2.12023-11-02 · diff ↗
- archivedRemoved from CRAN2023-09-06check issues were not corrected in time
- 0.2.0
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.1.02019-03-08
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2019-03-08
- Total releases
- 4 / 7 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.1.0
- Download size
- 44 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("retrodesign")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.