Skip to content

gsDesign2

1.2.0Package record

Group Sequential Design with Non-Constant Effect

0packages dependsuggested by 1
8.2Kdownloads / year
92.5%test coverage
13/13flavors OK

Overview

About

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.

Changes in 1.2.0

New features

  • Harm boundaries are now supported in gs_design_ahr(), gs_power_ahr(), gs_design_npe(), and gs_power_npe() through the new harm, hpar, and test_harm arguments. 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(), and as_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() reproduces gsDesign::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

CRAN checks
13OK
Slowest check: 9.7 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 1.2.0
READMEYes · 1,845 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.2.0Citation fileNoWebsiteYes · pkgdown

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

8.2K
CRAN downloads in the past year
Rank #4,351 · ~22/day · ~681/mo
Daily download trend is not available in this view yet.
91230 days
2K90 days
8.2K1 year
Compare downloads with other packages →
Also on590 r2u8 autocran

Repository

34Stars
11Forks
10Open issues
2Open PRs
19Releases
2,187Commits
27Commit identities
License file reads as GPL-3.0 · 2,187 commits · Last activity 2026-10-19 · 0% stars, 30d · Default branch at 1.2.0.9002, ahead of CRAN 1.2.0 (checked 2026-10-18)
Responsiveness
How these are sampled
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

2025-08-19 · 262026-08-23 · 34
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Contributing guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-02 · The repository has a site deploy workflow

pkgdown site last built 2026-10-02

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 5 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Automation and maintenance (1)
Dependabot
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2025-10-29
    Pull request: opened by its own account
  • Claude Codefirst seen 2026-05-05
    Seen in the repository: .claude, .claude/skills
    Named in .Rbuildignore: .claude, CLAUDE.md
    Pull request it wrote: opened by a project member
    Commits: at least 28 crediting it in the message
Models named in its commits
  • 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
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 4.1.0
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 1
Suggests, most downloaded first

People & History

People (19)
Author, Maintainer since 1.0.7 (2023)
Author · added in 1.1.0
Author
Author · added in 1.1.4
Contributor
Contributor · added in 1.1.1
Contributor
Contributor
Contributor
Contributor
Contributor · added in 1.1.2
Contributor
Show 3 more contributorsHide 3 contributors
Contributor
Contributor · added in 1.1.4
Contributor
Releases (14)

Pick two releases to compare their code metrics.

  • 1.2.0Latest
    record
    2026-07-30 · current release · diff ↗
  • 1.1.9
    record
    2026-06-30 · diff ↗ ·
    removed 1 export
    gs_cp_npe
    added 3 exports
    gs_cp, gs_cp_simple, sequential_pval
  • R
    R 4.6.0 released · 2026-04-24
  • 1.1.8
    record
    2026-02-12 · diff ↗
  • 1.1.7
    record
    2025-11-19 · diff ↗
  • 1.1.6
    record
    2025-09-11 · diff ↗
  • 1.1.5
    record
    2025-06-27 · diff ↗
  • 1.1.4
    record
    2025-06-06 · diff ↗ ·
    added 3 exports
    gs_bound_summary, gs_cp_npe, text_summary
  • R
    R 4.5.0 released · 2025-04-11
  • 1.1.3
    record
    2024-11-15 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.1.2
    record
    2024-04-09 · diff ↗ ·
    added 2 exports
    ahr_blinded, gs_update_ahr
  • 1.1.1
    record
    2024-02-09 · diff ↗ ·
    added 1 export
    as_rtf
  • 1.1.0
    record
    2023-08-23 · diff ↗ ·
    removed 4 exports
    fixed_design, gridpts, h1, hupdate
    added 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.9
    record
    2023-06-20 · diff ↗
  • 1.0.8
    record
    2023-05-01 · diff ↗
Show 3 earlier eventsHide 3 earlier events
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.7
    record
    2023-03-20
  • R
    R 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")
Zhao, Y., Merck & Co., Inc., Rahway, NJ, USA and its affiliates, Anderson, K., Blischak, J., Cui, Y., Fukuda, H., Li, C., Li, X. T., Shirazi, A., Wang, R., Wanjau, D., Xiao, N., Xie, Y., Yang, J., Yang, P., Zhang, H., Zhang, S., Zhang, Y., & Zhu, Y. (2026). gsDesign2: Group Sequential Design with Non-Constant Effect (Version 1.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for gsDesign2 version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-20. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy