Skip to content

curtailment

0.2.6

Finds Binary Outcome Designs Using Stochastic Curtailment

0packages depend
3.2Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Martin LawFirst published 2021-08-053 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 3.0 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
6
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 301 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
73%
Documented parameters
95%
Return-value docs
100%
References docs
18%

Downloads

3.2K
CRAN downloads in the past year
Rank #14,217 · ~9/day · ~269/mo
Daily download trend is not available in this view yet.
25430 days
77490 days
3.2K1 year
Compare downloads with other packages →
Also on102 r2u24 autocran

Repository

Repository
0Stars
1Forks
1Open issues
0Open PRs
12Releases
118Commits
1Contributors
118 commits · Last activity 2026-05-22

Forks over time

2022-02-25 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

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.

CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 6,494 (92%)Rd 581 (8%)
Code characteristics
Object systems
S34
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

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 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.6Latest
    2023-10-25 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.0
    2022-08-05 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.1
    2021-08-05
  • R
    R 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
Report a problem with this page →