Simulate Non-Proportional Hazards
Add recruitment time to Dataset
Analyse Dataset with accelarated failure time models
Analyse the dataset using extimators for the the average hazard ratio
Analyse Dataset with the Cox Protportional Hazards Model
Create a Function for Descriptive Statistics of a Dataset
Analyse the dataset using differnce in median survival
Create Analyse function for Gehan Wilcoxon test
Create Analyse Functions for Group Sequential Design
Analyse Dataset with the Fleming Harrington weighted Logrank Test
Analyse Dataset with the Logrank Test
Analyse Dataset with the Maxcombo Test
Analyse the Dataset using difference or quotient of milestone survival
Create Analyse function for the modestly weighted logrank test
Create Analyse function for piecewise exponential model
Analyse the Dataset using the difference in RMST
Analyse Dataset with Weibull Regression
Create a summarise function from a named list of functions
Create a data.frame with an example fixed design
Create a data.frame with an example group sequential design
Generate Dataset with crossing hazards
Generate Dataset with delayed effect
Create an empty assumtions data.frame for generate_progression
Generate Dataset with different treatment effect in subgroup
Add ggplot axis labels from labels attribute
Merge results from additional or updated simulations
Fast implementation of hazard, cumulative hazard, ... for mixtures of ...
Fast implementation of cumulative density function, survival function,...
Functions to Convert Between Days and Months and Medians and Rates
Apply Random Exponentially Distributed Censoring
Rename Columns in Simulation Results and Update Attributes
Functions for Plotting and Reporting Results
Plot of survival, hazard and hazard ratio of two groups as a function ...
SimNPH
Generic Summarise function for esitmators
Generic summarise function for tests
Wrappers around Analyse Functions
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) <doi:10.1002/sim.70019>.
Useful links