Finds Binary Outcome Designs Using Stochastic Curtailment
Overview
Finds single- and two-arm designs using stochastic curtailment, as described by Law et al. (2022) doi:10.1080/10543406.2021.2009498 and Law et al. (2021) doi:10.1002/pst.2067 respectively. Designs can be single-stage or multi-stage. Non-stochastic curtailment is possible as a special case. Desired error-rates, maximum sample size and lower and upper anticipated response rates are inputted and suitable designs are returned with operating characteristics. Stopping boundaries and visualisations are also available. The package can find designs using other approaches, for example designs by Simon (1989) doi:10.1016/0197-2456(89)90015-9 and Mander and Thompson (2010) doi:10.1016/j.cct.2010.07.008. Other features: compare and visualise designs using a weighted sum of expected sample sizes under the null and alternative hypotheses and maximum sample size; visualise any binary outcome design.
Changed output of find2stageDesigns
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 11
- Examples that run
- 73%8 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 18%
Downloads
Repository
Forks over time
Releases 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/martinlaw/curtailment on 2026-10-18.
Dependencies
Installing curtailment adds 28 packages (12 with compiled code, 24 MB of source tarballs). Heaviest: ggplot2 6.0 MB, data.table 5.7 MB, ggthemes 2.1 MB.
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.6Latest
- RR 4.3.0 released · 2023-04-21
- 0.2.0
- RR 4.2.0 released · 2022-04-22
- 0.1.12021-08-05
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-08-05
- Total releases
- 3 / 5 yrs
- License
- GPL (>= 3) OSI
- Download size
- 97 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("curtailment")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-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.