SimNPH0.5.8 package

Simulate Non-Proportional Hazards

admin_censoring_time

Add recruitment time to Dataset

analyse_aft

Analyse Dataset with accelarated failure time models

analyse_ahr

Analyse the dataset using extimators for the the average hazard ratio

analyse_coxph

Analyse Dataset with the Cox Protportional Hazards Model

analyse_describe

Create a Function for Descriptive Statistics of a Dataset

analyse_diff_median_survival

Analyse the dataset using differnce in median survival

analyse_gehan_wilcoxon

Create Analyse function for Gehan Wilcoxon test

analyse_group_sequential

Create Analyse Functions for Group Sequential Design

analyse_logrank_fh_weights

Analyse Dataset with the Fleming Harrington weighted Logrank Test

analyse_logrank

Analyse Dataset with the Logrank Test

analyse_maxcombo

Analyse Dataset with the Maxcombo Test

analyse_milestone_survival

Analyse the Dataset using difference or quotient of milestone survival

analyse_modelstly_weighted

Create Analyse function for the modestly weighted logrank test

analyse_piecewise_exponential

Create Analyse function for piecewise exponential model

analyse_rmst_diff

Analyse the Dataset using the difference in RMST

analyse_weibull

Analyse Dataset with Weibull Regression

create_summarise_function

Create a summarise function from a named list of functions

design_fixed_followup

Create a data.frame with an example fixed design

design_group_sequential

Create a data.frame with an example group sequential design

generate_crossing_hazards

Generate Dataset with crossing hazards

generate_delayed_effect

Generate Dataset with delayed effect

generate_progression

Create an empty assumtions data.frame for generate_progression

generate_subgroup

Generate Dataset with different treatment effect in subgroup

labs_from_labels

Add ggplot axis labels from labels attribute

merge_additional_results

Merge results from additional or updated simulations

mixture_haz_fun

Fast implementation of hazard, cumulative hazard, ... for mixtures of ...

progression_cdf_fun

Fast implementation of cumulative density function, survival function,...

r2m

Functions to Convert Between Days and Months and Medians and Rates

random_censoring_exp

Apply Random Exponentially Distributed Censoring

rename_results_column

Rename Columns in Simulation Results and Update Attributes

results_pivot_longer

Functions for Plotting and Reporting Results

shhr_gg

Plot of survival, hazard and hazard ratio of two groups as a function ...

SimNPH

SimNPH

summarise_estimator

Generic Summarise function for esitmators

summarise_test

Generic summarise function for tests

wrap_all_in_trycatch

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>.

  • Maintainer: Tobias Fellinger
  • License: BSL-1.0
  • Last published: 2025-09-19