Skip to content

simtrial

1.0.2

Clinical Trial Simulation

3packages depend
9.2Kdownloads / year
82.7%test coverage
13/13checks pass

Overview

About
Maintained by Yujie ZhaoFirst published 2023-12-116 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 12.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.74
82.7%
Coverage · measured lines
100%
Documentation · exports
10
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 406 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
97%
Documented parameters
80%
Return-value docs
100%
References docs
28%

Downloads

9.2K
CRAN downloads in the past year
Rank #4,969 · ~25/day · ~763/mo
Daily download trend is not available in this view yet.
40830 days
1.6K90 days
9.2K1 year
Compare downloads with other packages →
Also on529 r2u14 autocran

Repository

Repository
37Stars
13Forks
3Open issues
0Open PRs
10Releases
1,150Commits
18Contributors
License GPL-3.0 · 1,150 commits · Last activity 2026-07-01 · +2.8% stars, 30d

Stars over time

2025-07-30 · 242026-08-12 · 37

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/merck/simtrial on 2026-08-09.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
Automation and maintenance (1)
Dependabot
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
20 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
Imports (10)
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
3direct
0indirect

Code & Tests

Datasets

People & History

People (17)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Contributors (12)
Contributor
Contributor · added in 1.0.0
Contributor
Contributor
Contributor
Contributor
Contributor
Contributor
Show 4 more contributors
Contributor
Contributor
Contributor
Contributor
Copyright holders (1)
Package Timeline

6 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.2Latest
    2025-11-20 · current release · diff ↗
  • 1.0.1
    2025-09-11 · diff ↗
  • 1.0.0
    2025-06-11 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.4.2
    2024-11-18 · diff ↗
  • 0.4.1
    2024-05-03 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.2
    2023-12-11
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-12-11
Total releases
6 / 3 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
14 KB / 7 files
Download size
1.0 MB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("simtrial")
Zhao, Y., Merck & Co., Inc., Rahway, NJ, USA and its affiliates, Anderson, K., Blischak, J., Cui, Y., Leon, L., Li, X., Ling, L., Manschot, C., Shirazi, A., Wang, R., Xiao, N., Yang, J., Yang, P., Zhang, Y., Zhou, H., & Zhu, Y. (2025). simtrial: Clinical Trial Simulation (Version 1.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.simtrial

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for simtrial version 1.0.2 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy