TrialSimulator: Clinical Trial Simulator

Simulate phase II and/or phase III clinical trials. It supports various types of endpoints and adaptive strategies. Tools for carrying out graphical testing procedure and combination test under group sequential design are also provided.

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: base64enc, dplyr, emmeans, ggplot2, gMCPLite, htmltools, mvtnorm, R6, rlang, rpact, rstudioapi, survival, utils
Suggests: DoseFinding, graphicalMCP, kableExtra, knitr, rmarkdown, simdata, survminer, testthat (≥ 3.0.0)
Published: 2025-09-03
DOI: 10.32614/CRAN.package.TrialSimulator
Author: Han Zhang [cre, aut]
Maintainer: Han Zhang <zhangh.ustc at gmail.com>
BugReports: https://github.com/zhangh12/TrialSimulator/issues
License: MIT + file LICENSE
URL: https://zhangh12.github.io/TrialSimulator/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: TrialSimulator results

Documentation:

Reference manual: TrialSimulator.html , TrialSimulator.pdf
Vignettes: Specify Actions to Execute at Trial Milestones (source, R code)
An Example of Simulating a Trial with Adaptive Design (source, R code)
Condition System for Triggering Milestones in a Trial (source, R code)
Define and Summarize Arms in Clinical Trials (source, R code)
Define Longitudinal Endpoints in Clinical Trials (source, R code)
Define Non-Time-to-Event Endpoints in Clinical Trials (source, R code)
Define Time-to-Event Endpoints in Clinical Trials (source, R code)
An Example of Fixed Design with Two Correlated Endpoints (source, R code)
Designs with Response-Adaptive Randomization (source, R code)
Simulate Correlated Progression-Free Survival and Overall Survival as Endpoints in Clinical Trials (source, R code)
Wrapper Functions of Common Statistical Methods in TrialSimulator (source, R code)

Downloads:

Package source: TrialSimulator_1.0.0.tar.gz
Windows binaries: r-devel: TrialSimulator_1.0.0.zip, r-release: not available, r-oldrel: TrialSimulator_1.0.0.zip
macOS binaries: r-release (arm64): TrialSimulator_1.0.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): TrialSimulator_1.0.0.tgz, r-oldrel (x86_64): TrialSimulator_1.0.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=TrialSimulator to link to this page.