Package: curtailment Title: Finds Binary Outcome Designs Using Stochastic Curtailment Version: 1.0.0 Authors@R: person(given = "Martin", family = "Law", role = c("aut", "cre"), email = "martin.law@mrc-bsu.cam.ac.uk", comment = c(ORCID = "0000-0001-9594-348X")) Maintainer: Martin Law Description: Finds single- and two-arm designs using stochastic curtailment, as described by Law et al. (2022) and Law et al. (2021) 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) and Mander and Thompson (2010) . 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. License: GPL (>= 3) Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.3.2 Imports: ggplot2, gridExtra, ggthemes, data.table, pkgcond, stats URL: https://github.com/martinlaw/curtailment BugReports: https://github.com/martinlaw/curtailment/issues Suggests: testthat (>= 3.0.0) Config/testthat/edition: 3 Repository: https://martinlaw.r-universe.dev Date/Publication: 2025-11-14 18:30:40 UTC RemoteUrl: https://github.com/martinlaw/curtailment RemoteRef: HEAD RemoteSha: 5a3f3ce41215a1de85d8d25364b57dd2cab1e2c6 NeedsCompilation: no Packaged: 2026-10-13 08:52:11 UTC; root Author: Martin Law [aut, cre] (ORCID: )