A toolkit for simulation studies concerning time-to-event endpoints
with non-proportional hazards. 'SimNPH' encompasses functions for simulating
time-to-event data in various scenarios, simulating different trial designs
like fixed-followup, event-driven, and group sequential designs. The package
provides functions to calculate the true values of common summary statistics
for the implemented scenarios and offers common analysis methods for
time-to-event data. Helper functions for running simulations with the
'SimDesign' package and for aggregating and presenting the results are also
included. Results of the conducted simulation study are available in the
paper: "A Comparison of Statistical Methods for Time-To-Event Analyses in
Randomized Controlled Trials Under Non-Proportional Hazards",
Klinglmüller et al. (2025)
Simulate Non Proportional Hazards
This package provides several functions to simulate survival data with non proportional hazards using the general purpose simulation package SimDesign.
This package follows the structure of SimDesing and provides functions that
can readily be used as generate, analyse and summarise arguments in
SimDesign's runSimulation function.
The current development version can be installed with:
remotes::install_git("https://github.com/SimNPH/SimNPH.git")
Documentation for all functions can be found in the respective help topics in the package after installation or here
Some examples of data generation, testing and estimation can be found in this vignette.
The results of the simulation study done by the CONFIRMS consortium in the course of the EMA tender are published in the paper A Comparison of Statistical Methods for Time-To-Event Analyses in Randomized Controlled Trials Under Non-Proportional Hazards, Klinglmüller et al. (2025) and are presented in a shinylive App.
The parameters for the simulations were set using the following scripts:
scripts/set_parameters_delayed_effect.Rscripts/set_parameters_crossing_hazards.Rscripts/set_parameters_subgroup.Rscripts/set_parameters_progression.RThe simulations were then run using the following scripts:
scripts/run_simulations_delayed_effect.Rscripts/run_simulations_crossing_hazards.Rscripts/run_simulations_subgroup.Rscripts/run_simulations_progression.RWhich in turn use scripts/run_simulations_common.R.
All scripts are executed with the base directory of this repository as working directory.
Changes since the conduct of the simulation study:
run_simulations_...data.
This folder was renamed to data_sim_study because data is reserved for the
use in R packages. Change the paths accordingly.run_simulations_... scripts use the parameters from a specified data. If
you want to use parameter-values you generated yourself, update the path
accordingly.If you want to re-use the scenarios from the simulation study to investigate
additional methods, use the scripts and documentation provided in the
SimTemplate github repository. Also
refer to the documentation on
contributing. If you do so
please cite the simulation study, you can get a bibtex entry with
citation(package="SimNPH").