simtrial
Clinical trial simulation for time-to-event endpoints
A fixed-design trial simulator grew a pluggable test framework, then spent a year proving the numbers
◆Recent moves
- 8mo ago
One-sided efficacy bound and stratified cut date corrected
Corrects the efficacy bound sim_gs_n() reports for one-sided designs and fixes the cut date derived from stratified targeted events in get_analysis_date(). Both change numbers that feed into design decisions, which puts them above routine bug fixing. An internal cut_from_design() helper now derives cuttings from the design object directly.
View source ↗ - 11mo ago
sim_gs_n moved to data.table; stratified design example added
Replaces dplyr with data.table inside sim_gs_n() for speed and adds a worked stratified group sequential example. The dplyr-to-data.table conversion is the same move made in summary() a year earlier — this codebase steadily trades ergonomics for throughput in its hot paths.
View source ↗ - 1y ago
1.0.0 settles the wlr interface and documents both simulation paths
The 1.0.0 release consolidates rather than expands: wlr() accepts a formula and becomes an S3 method across both tte_data and counting_process, sim_pw_surv() carries the randomization ratio as an attribute, and parallel simulation gets faster by dropping foreach's rbind combination. Three new vignettes cover simulating fixed and group sequential designs from a single call or from the ground up.
View source ↗ - 1y ago
Milestone Z-score denominator corrected; parallel sim_fixed_n arrives
Corrects the denominator of the milestone test Z-score and unifies Z-score signs to positive — changes that alter results produced by the previous release. Alongside them, sim_gs_n() gains a summary method and statistical information output, sim_fixed_n() gains parallel execution, and summary() is rewritten on data.table to avoid temporary copies.
View source ↗ - 2y ago
Checks pass without Suggests dependencies
Makes examples, tests and vignettes run conditionally so the package passes checks without its Suggests dependencies installed. Packaging hygiene with no effect on simulation results.
View source ↗ - 2y ago
RMST and milestone tests, plus a user-definable cut and test framework
⚡ SPARKAdds the RMST and milestone tests, an experimental sim_gs_n() for group sequential simulation, and the create_cut() / create_test() / multitest() trio that lets users define their own interim analyses and testing strategies. Every test — logrank, weighted logrank, RMST, milestone, MaxCombo — is unified behind one output structure. This is where the package stops being a fixed-design simulator with built-in tests and becomes a framework.
View source ↗