TrialSimulator 1.3.0
CRAN release: 2025-09-26
Major Updates
- Action function no longer needs argument
milestone_name. Now action function only requires argumenttrialand supports optional arguments. -
milestone()now support...to pass arguments to action functions. - Documents and vignettes are updated.
TrialSimulator 1.2.0
New Feature
-
enrollment()now supportsmin_treatment_durationto ensure minimum treatment duration received by patients at a milestone. With its default value 0, milestone is triggered when a specific number of patients are enrolled. - No longer print the return value of action function, thus
invisible(NULL)is no longer recommended as return value of action function.
TrialSimulator 0.97.0
Bug Fix
- Fix a bug in function
event_plot()for plot of cumulative events number when endpoint name is"ep". This is due to data masking indplyr. - Fix issues in unit tests caused by new dropout mechanisum.
- use Bonferroni method in unit test of
update_sample_ratio. This test is probably broken by randomness (it is okay).
TrialSimulator 0.93.0
New Feature
-
update_sample_ratio()now supports updating multiple arms simultaneously. When ratio is not a whole number,sample()is used to replace the permuted block algorithm to randomize patients to arms. This enable response-adaptive design. - Add a vignette of response-adaptive design using
update_sample_ratio().
TrialSimulator 0.91.0
TrialSimulator 0.90.0
TrialSimulator 0.82.0
New Feature
- The function
fitCoxphnow supportsformulato compute log hazard ratio or hazard ratio as main effect ofarm. It will detect whether arm’s main effect is specified in formula. It allows covariates and interaction between covariates and arm. However, only the main effect of arm is tested and returned. - Add unit tests for
fitCoxph.
TrialSimulator 0.68.0
Updates
- Rename trial event as milestone. This a major update. Relevant codes and documents are updated accordingly.
- Add executable examples for
controller()as per suggestion from CRAN team.
TrialSimulator 0.67.0
Updates
- Print event counts at trial events using
message()so that Shiny app can display it properly.
TrialSimulator 0.58.0
TrialSimulator 0.57.0
Updates
- Move vignette of comparison between
GraphicalTestingandgraphicalMCPto repository TrialSimulatorDocuments.
TrialSimulator 0.55.0
TrialSimulator 0.35.0
TrialSimulator 0.33.0
New Features
- Provide a default action function
do_nothing()if users have no intent to do anything at a triggered event. This function can be passed to the argumentactionwhen creating a new event, e.g.,Event$new(name = 'interim', trigger_condition = TriggerByCalendarTime, action = do_nothing, calendar_time = 64).
