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 rolling linux/jammy R-4.5 cpsurvsim_1.2.2.tar.gz 51.2 KiB
1.2.2 rolling linux/noble R-4.5 cpsurvsim_1.2.2.tar.gz 51.2 KiB
1.2.2 rolling source/ R- cpsurvsim_1.2.2.tar.gz 12.7 KiB
1.2.2 latest linux/jammy R-4.5 cpsurvsim_1.2.2.tar.gz 51.2 KiB
1.2.2 latest linux/noble R-4.5 cpsurvsim_1.2.2.tar.gz 51.2 KiB
1.2.2 latest source/ R- cpsurvsim_1.2.2.tar.gz 12.7 KiB
1.2.2 2026-04-26 source/ R- cpsurvsim_1.2.2.tar.gz 12.7 KiB
1.2.2 2026-04-23 source/ R- cpsurvsim_1.2.2.tar.gz 12.7 KiB
1.2.2 2026-04-09 windows/windows R-4.5 cpsurvsim_1.2.2.zip 56.0 KiB
1.2.2 2025-04-20 source/ R- cpsurvsim_1.2.2.tar.gz 12.7 KiB

Dependencies (latest)

Imports

Suggests