Crandore Hub

cpsurvsim

Simulating Survival Data from Change-Point Hazard Distributions

Simulates time-to-event data with type I right censoring using two methods: the inverse CDF method and our proposed memoryless method. The latter method takes advantage of the memoryless property of survival and simulates a separate distribution between change-points. We include two parametric distributions: exponential and Weibull. Inverse CDF method draws on the work of Rainer Walke (2010), <https://www.demogr.mpg.de/papers/technicalreports/tr-2010-003.pdf>.

Versions across snapshots

VersionRepositoryFileSize
1.2.2 2026-04-09 windows/windows R-4.5 cpsurvsim_1.2.2.zip 56.0 KiB

Dependencies (latest)

Imports

Suggests