simtrial: Clinical Trial Simulation

Provides some basic routines for simulating a clinical trial. The primary intent is to provide some tools to generate trial simulations for trials with time to event outcomes. Piecewise exponential failure rates and piecewise constant enrollment rates are the underlying mechanism used to simulate a broad range of scenarios such as those presented in Lin et al. (2020) <doi:10.1080/19466315.2019.1697738>. However, the basic generation of data is done using pipes to allow maximum flexibility for users to meet different needs.

Version: 0.3.2
Depends: R (≥ 4.1.0)
Imports: Rcpp, data.table, doFuture, foreach, future, methods, mvtnorm, stats, survival, utils
LinkingTo: Rcpp
Suggests: Matrix, bshazard, covr, dplyr, ggplot2, gsDesign, gsDesign2, knitr, rmarkdown, survMisc, testthat, tidyr
Published: 2023-12-11
Author: Keaven Anderson [aut], Yilong Zhang [aut], Yujie Zhao [ctb, cre], Nan Xiao [ctb], Jianxiao Yang [ctb], Lili Ling [ctb], Xintong Li [ctb], Ruixue Wang [ctb], Yi Cui [ctb], Ping Yang [ctb], Yalin Zhu [ctb], Heng Zhou [ctb], Amin Shirazi [ctb], Cole Manschot [ctb], John Blischak [ctb], Merck & Co., Inc., Rahway, NJ, USA and its affiliates [cph]
Maintainer: Yujie Zhao <yujie.zhao at>
License: GPL-3
NeedsCompilation: yes
Materials: README NEWS
CRAN checks: simtrial results


Reference manual: simtrial.pdf
Vignettes: Approximating an arbitrary hazard function
Using the Magirr-Burman weights for testing
Simulating time-to-event trials in parallel
Computing p-values for Fleming-Harrington weighted logrank tests and the MaxCombo test
Basic tools for time-to-event trial simulation and testing
TTE simulation data manipulations


Package source: simtrial_0.3.2.tar.gz
Windows binaries: r-prerel:, r-release:, r-oldrel:
macOS binaries: r-prerel (arm64): simtrial_0.3.2.tgz, r-release (arm64): simtrial_0.3.2.tgz, r-oldrel (arm64): simtrial_0.3.2.tgz, r-prerel (x86_64): simtrial_0.3.2.tgz, r-release (x86_64): simtrial_0.3.2.tgz

Reverse dependencies:

Reverse suggests: gsDesign2


Please use the canonical form to link to this page.