Skip to content

retrodesign

0.2.2Package record

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

1packages depend
3Kdownloads / year
65.8%test coverage
13/13flavors OK

Overview

About

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 in 0.2.2

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

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-08
  • WARNING12 OK, 1 WARNING2026-06-07
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.2
READMEYes · 319 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 0.2.2Citation fileNoWebsitenot declared in DESCRIPTION
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

3K
CRAN downloads in the past year
Rank #16,969 · ~8/day · ~252/mo
Daily download trend is not available in this view yet.
32030 days
73590 days
3K1 year
Compare downloads with other packages →
Also on80 r2u4 autocran

Repository

10Stars
2Forks
0Open issues
0Open PRs
0Releases
65Commits
1Commit identities
65 commits · Last activity 2024-03-28 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-07-31 · 62026-09-07 · 10
PracticesBeta

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.

Continuous integration (1)
Travis CI (config file)
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing retrodesign adds no packages beyond those that come with R.

Depends (1)
R >= 3.1.0
Imports (1)
graphics
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Depends, Imports or LinkingTo, most downloaded first

People & History

People (4)
Maintainer since 0.1.0 (2019), Author
Contributor, Copyright holder
Contributor, Copyright holder
Contributor · added in 0.2.0
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.2Latest
    record
    2024-03-28 · current release · diff ↗
  • unarchivedReturned to CRAN
    2023-11-02
  • 0.2.1
    record
    2023-11-02 · diff ↗
  • archivedRemoved from CRAN
    2023-09-06
    check issues were not corrected in time
  • 0.2.0
    record
    2023-08-24 · diff ↗ ·
    added 1 export
    retro_design_closed_form
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2019-03-08
  • R
    R 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")
Timm, A., Carlin, J., Gelman, A., & Weterings, M. (2024). retrodesign: Tools for Type S (Sign) and Type M (Magnitude) Errors (Version 0.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for retrodesign version 0.2.2 [Data set]. HJJB, LLC. Data release v2026-10-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy