Group Sequential Design with Non-Constant Effect
Overview
The goal of 'gsDesign2' is to enable fixed or group sequential design under non-proportional hazards. To enable highly flexible enrollment, time-to-event and time-to-dropout assumptions, 'gsDesign2' offers piecewise constant enrollment, failure rates, and dropout rates for a stratified population. This package includes three methods for designs: average hazard ratio, weighted logrank tests in Yung and Liu (2019) doi:10.1111/biom.13196, and MaxCombo tests. Substantial flexibility on top of what is in the 'gsDesign' package is intended for selecting boundaries.
New features
- Harm boundaries are now supported in
gs_design_ahr(),gs_power_ahr(),gs_design_npe(), andgs_power_npe()through the newharm,hpar, andtest_harmarguments. Harm boundaries are available for group sequential designs with futility testing and are not supported for fixed designs (#640, thanks to @LittleBeannie, @yihui, and @keaven). - Harm boundaries are now included in
summary(),gs_bound_summary(),as_gt(), andas_rtf()output, with controls for custom labels and bound display (#640, thanks to @LittleBeannie, @jdblischak, @yihui, and @keaven).
Documentation
- A new vignette demonstrates how
gs_design_ahr()reproducesgsDesign::gsSurv(method = "Schoenfeld")boundaries across test types, including designs with harm boundaries (#640, thanks to @LittleBeannie, @yihui, and @keaven).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-07-31
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-04-18
- OK14 OK2026-03-10
Documentation
The repository also keeps web-only articles.
- Help pages
- 40 (1 internal)includes a package overview page
- Examples that run
- 100%39 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 78%
- Return-value docs
- 100%
- Help pages citing references
- 5%
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 9
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Commit identities over time
14 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/merck/gsdesign2 on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-02 · The repository has a site deploy workflow
pkgdown site last built 2026-10-02
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-10-29Pull request: opened by its own account
- Claude Codefirst seen 2026-05-05Seen in the repository: .claude, .claude/skillsNamed in .Rbuildignore: .claude, CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 28 crediting it in the message
- Claude Opus 4.622 commits · May to Aug 2026
- Claude Opus 4.84 commits · Sep to Oct 2026
- Claude Opus 51 commit · Oct 2026
- Claude Sonnet 4.51 commit · Jul 2026
Dependencies
Installing gsDesign2 adds 71 packages (36 with compiled code, 68 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
People & History
Show 3 more contributorsHide 3 contributors
Pick two releases to compare their code metrics.
- 1.2.0Latest
- 1.1.9
- RR 4.6.0 released · 2026-04-24
- 1.1.82026-02-12 · diff ↗
- 1.1.72025-11-19 · diff ↗
- 1.1.62025-09-11 · diff ↗
- 1.1.52025-06-27 · diff ↗
- 1.1.4
- RR 4.5.0 released · 2025-04-11
- 1.1.32024-11-15 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.1.2
- 1.1.1
- 1.1.02023-08-23 · diff ↗ ·
removed 4 exports
fixed_design, gridpts, h1, hupdateadded 11 exports
define_enroll_rate, define_fail_rate, fixed_design_ahr, fixed_design_fh, fixed_design_lf, fixed_design_maxcombo, fixed_design_mb, fixed_design_milestone, fixed_design_rd, fixed_design_rmst, pw_info - 1.0.92023-06-20 · diff ↗
- 1.0.82023-05-01 · diff ↗
Show 3 earlier eventsHide 3 earlier events
- RR 4.3.0 released · 2023-04-21
- 1.0.72023-03-20
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2023-03-20
- Total releases
- 14 / 3 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 468 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gsDesign2")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-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.