Skip to contents

Assessing sample size and power, and presenting consolidated evidence

Originally developed at Sarepta Therapeutics (Sarepta-Therapeutics/gst). This fork is maintained by Xiao Ni.

Description

The {gst} package provides a toolbox for assessing sample size and power for Global Statistical Tests across a variety of scenarios, and presenting consolidated evidence using a forest plot.

Talk

R/Pharma 2026: Totality of Evidence in Minutes: Interactive Apps for GST Power and Publication-Ready Forest Plot

Installation

The package is not yet available on CRAN. To install the development version of the package from Github run:

pak::pak("xni7/gst")

Shiny Apps

The {gst} package includes two shiny applications. For details on how to use the apps, please review the vignettes.

Acknowledgement

Lerong Li implemented the O’Brien GST test and the power calculations in this package. Anthony Pileggi built the interfaces for both Shiny apps. Xiaolong Luo led the methodological development of the truncated closed test in Luo et al. (2025). Stephen Knapp and Preston Burns contributed to the package.

The forest plot is drawn with forestploter by Alimu Dayimu.