curtailment
0.2.6Finds 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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 73%
- Documented parameters
- 95%
- Return-value docs
- 100%
- References docs
- 18%
Downloads
Repository
Forks over time
Releases over time
Issues over time
Repository practices
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/martinlaw/curtailment on 2026-07-19.
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 4.0 median / 40 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
75 11 exported
Complexity
7 avg / 40 max
Call network
75 nodes / 42 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- 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.02022-08-05 · diff ↗
- 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
- Installed size
- not tracked yet
- With dependencies
- not tracked yet