Skip to content

simtrial

Clinical Trial Simulation

v1.0.2 · Nov 20, 2025 · GPL-3

Description

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.

Downloads

CRAN

680

Last 30 days

4669th

1.6K

Last 90 days

9.1K

Last year

Trend: +39.3% (30d vs prior 30d)

r2u CRAN

45

Last 30 days

140

Last 90 days

560

Last year

Trend: -22.4% (30d vs prior 30d)

autoCRAN

5

Last 7 days

19

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

index information

Fatal error: cannot create 'R_TempDir'
See sections ‘The INDEX file’ and ‘Package subdirectories’ in the
‘Writing R Extensions’ manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/simtrial.Rcheck/00install.out' for details.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (2)

imports

suggests

Dependency Network

Dependencies Reverse dependencies Rcpp data.table doFuture foreach future mvtnorm survival gsDesignNB gsDesign2 simtrial

Version History

7 tracked
new 1.0.2 Mar 10, 2026
updated 1.0.2 ← 1.0.1 diff Nov 19, 2025
updated 1.0.1 ← 1.0.0 diff Sep 10, 2025
updated 1.0.0 ← 0.4.2 diff Jun 10, 2025
updated 0.4.2 ← 0.4.1 diff Nov 17, 2024
updated 0.4.1 ← 0.3.2 diff May 2, 2024
new 0.3.2 Dec 10, 2023