Package: gsDesign2 1.1.8

Yujie Zhao

gsDesign2: Group Sequential Design with Non-Constant Effect

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.

Authors:Keaven Anderson [aut], Yujie Zhao [aut, cre], Yilong Zhang [aut], John Blischak [aut], Yihui Xie [aut], Nan Xiao [aut], Jianxiao Yang [aut], Amin Shirazi [ctb], Ruixue Wang [ctb], Yi Cui [ctb], Ping Yang [ctb], Xin Tong Li [ctb], Chenxiang Li [ctb], Hiroaki Fukuda [ctb], Hongtao Zhang [ctb], Yalin Zhu [ctb], Shiyu Zhang [ctb], Dickson Wanjau [ctb], Merck & Co., Inc., Rahway, NJ, USA and its affiliates [cph]

gsDesign2_1.1.8.tar.gz
gsDesign2_1.1.8.zip(r-4.7)gsDesign2_1.1.8.zip(r-4.6)gsDesign2_1.1.8.zip(r-4.5)
gsDesign2_1.1.8.tgz(r-4.6-x86_64)gsDesign2_1.1.8.tgz(r-4.6-arm64)gsDesign2_1.1.8.tgz(r-4.5-x86_64)gsDesign2_1.1.8.tgz(r-4.5-arm64)
gsDesign2_1.1.8.tar.gz(r-4.7-arm64)gsDesign2_1.1.8.tar.gz(r-4.7-x86_64)gsDesign2_1.1.8.tar.gz(r-4.6-arm64)gsDesign2_1.1.8.tar.gz(r-4.6-x86_64)
gsDesign2_1.1.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gsDesign2/json (API)
NEWS

# Install 'gsDesign2' in R:
install.packages('gsDesign2', repos = c('https://merck.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/merck/gsdesign2/issues

Pkgdown/docs site:https://merck.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

9.17 score 33 stars 339 scripts 331 downloads 49 exports 74 dependencies

Last updated from:11cafdb984. Checks:2 ERROR, 11 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64ERROR286
linux-devel-x86_64OK336
source / vignettesOK217
linux-release-arm64ERROR287
linux-release-x86_64OK305
macos-release-arm64OK208
macos-release-x86_64OK405
macos-oldrel-arm64OK217
macos-oldrel-x86_64OK558
windows-develOK299
windows-releaseOK281
windows-oldrelOK359
wasm-releaseOK149

Exports:ahrahr_blindedas_gtas_rtfdefine_enroll_ratedefine_fail_rateexpected_accrualexpected_eventexpected_timefixed_design_ahrfixed_design_fhfixed_design_lffixed_design_maxcombofixed_design_mbfixed_design_milestonefixed_design_rdfixed_design_rmstgs_bgs_bound_summarygs_cpgs_cp_simplegs_create_armgs_design_ahrgs_design_combogs_design_npegs_design_rdgs_design_wlrgs_info_ahrgs_info_combogs_info_rdgs_info_wlrgs_power_ahrgs_power_combogs_power_npegs_power_rdgs_power_wlrgs_spending_boundgs_spending_combogs_update_ahrppwepw_infos2pwesequential_pvaltext_summaryto_integerwlr_weight_1wlr_weight_fhwlr_weight_mbwlr_weight_n

Dependencies:base64encbigDbitopsbslibcachemclicommonmarkcorpcorcpp11curldata.tabledigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegsDesigngtgtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglatticelifecyclelitedownmagrittrmarkdownMatrixmemoisemimemvtnormnpsurvSSpillarpkgconfigpurrrr2rtfR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownS7sassscalesstringistringrsurvivaltibbletidyrtidyselecttinytexutf8V8vctrsviridisLitewithrxfunxml2xtableyaml

Quick start for NPH sample size and power

Rendered fromgsDesign2.Rmdusingknitr::rmarkdownon May 28 2026.

Last update: 2025-09-04
Started: 2023-03-02

Readme and manuals

Help Manual

Help pageTopics
Average hazard ratio under non-proportional hazardsahr
Blinded estimation of average hazard ratioahr_blinded
Convert summary table of a fixed or group sequential design object to a gt objectas_gt as_gt.fixed_design_summary as_gt.gs_design_summary
Write summary table of a fixed or group sequential design object to an RTF fileas_rtf as_rtf.fixed_design_summary as_rtf.gs_design_summary
Define enrollment ratedefine_enroll_rate
Define failure ratedefine_fail_rate
Piecewise constant expected accrualexpected_accrual
Expected events observed under piecewise exponential modelexpected_event
Predict time at which a targeted event count is achievedexpected_time
Fixed design under non-proportional hazardsfixed_design_ahr fixed_design_fh fixed_design_lf fixed_design_maxcombo fixed_design_mb fixed_design_milestone fixed_design_rd fixed_design_rmst
Default boundary generationgs_b
Bound summary tablegs_bound_summary
Conditional power computation with non-constant effect size for non-/crossing an upper boundary at analysis j given observed Z value at analysis igs_cp
Simple conditional power computation with non-constant effect sizegs_cp_simple
Create npsurvSS arm objectgs_create_arm
Calculate sample size and bounds given targeted power and Type I error in group sequential design using average hazard ratio under non-proportional hazardsgs_design_ahr
Group sequential design using MaxCombo test under non-proportional hazardsgs_design_combo
Group sequential design computation with non-constant effect and information.gs_design_npe gs_power_design_npe gs_power_npe
Group sequential design of binary outcome measuring in risk differencegs_design_rd
Group sequential design using weighted log-rank test under non-proportional hazardsgs_design_wlr
Information and effect size based on AHR approximationgs_info_ahr
Information and effect size for MaxCombo testgs_info_combo
Information and effect size under risk differencegs_info_rd
Information and effect size for weighted log-rank testgs_info_wlr
Group sequential design power using average hazard ratio under non-proportional hazardsgs_power_ahr
Group sequential design power using MaxCombo test under non-proportional hazardsgs_power_combo
Group sequential design power of binary outcome measuring in risk differencegs_power_rd
Group sequential design power using weighted log rank test under non-proportional hazardsgs_power_wlr
Derive spending bound for group sequential boundarygs_spending_bound
Derive spending bound for MaxCombo group sequential boundarygs_spending_combo
Group sequential design using average hazard ratio under non-proportional hazardsgs_update_ahr
Piecewise exponential cumulative distribution functionppwe
Average hazard ratio under non-proportional hazardspw_info
Approximate survival distribution with piecewise exponential distributions2pwe
Sequential p-value computation for gsDesign2sequential_pval
Summary for fixed design or group sequential design objectssummary.fixed_design summary.gs_design
Generates a textual summary of a group sequential design using the AHR method.text_summary
Round sample size and eventsto_integer to_integer.fixed_design to_integer.gs_design
Weight functions for weighted log-rank testwlr_weight wlr_weight_1 wlr_weight_fh wlr_weight_mb wlr_weight_n