Random Generation of Survival Data

Random generation of survival data from a wide range of regression models, including accelerated failure time (AFT), proportional hazards (PH), proportional odds (PO), accelerated hazard (AH), Yang and Prentice (YP), and extended hazard (EH) models. The package 'rsurv' also stands out by its ability to generate survival data from an unlimited number of baseline distributions provided that an implementation of the quantile function of the chosen baseline distribution is available in R. Another nice feature of the package 'rsurv' lies in the fact that linear predictors are specified via a formula-based approach, facilitating the inclusion of categorical variables and interaction terms. The functions implemented in the package 'rsurv' can also be employed to simulate survival data with more complex structures, such as survival data with different types of censoring mechanisms, survival data with cure fraction, survival data with random effects (frailties), multivariate survival data, and competing risks survival data. Details about the R package 'rsurv' can be found in Demarqui (2024) .


rsurv

CRAN_Status_Badge Downloads TotalDownloads

R-CMD-check

The R package rsurv is aimed for general survival data simulation purposes. The package is built under a new approach to simulate survival data that depends deeply on the use of dplyr verbs. The proposed package allows simulations of survival data from a wide range of regression models, including accelerated failure time (AFT), proportional hazards (PH), proportional odds (PO), accelerated hazard (AH), Yang and Prentice (YP), and extended hazard (EH) models. The package rsurv also stands out by its ability to generate survival data from an unlimited number of baseline distributions provided that an implementation of the quantile function of the chosen baseline distribution is available in R. Another nice feature of the package rsurv lies in the fact that linear predictors are specified via a formula-based approach, facilitating the inclusion of categorical variables and interaction terms. The functions implemented in the package rsurv can also be employed to simulate survival data with more complex structures, such as survival data with different types of censoring mechanisms, survival data with cure fraction, survival data with random effects (frailties), multivariate survival data, and competing risks survival data. Details about the R package rsurv can be found in Demarqui (2024) <doi.org/10.48550/arXiv.2406.01750>.

Installation

You can install the released version of rsurv from CRAN with:

install.packages("rsurv")

You can install the development version of rsurv like so:

# install.packages("devtools")
devtools::install_github("fndemarqui/rsurv")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rsurv")

0.0.2 by Fabio Demarqui, 2 years ago


https://github.com/fndemarqui/rsurv, https://fndemarqui.github.io/rsurv/


Report a bug at https://github.com/fndemarqui/rsurv/issues


Browse source code at https://github.com/cran/rsurv


Authors: Fabio Demarqui [aut, cre, cph]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports bellreg, dplyr, MASS, Rdpack, stabledist

Suggests copula, flexsurv, frailtyEM, GGally, knitr, LambertW, rmarkdown, survival, survstan, testthat


Suggested by simDAG, spsurv.


See at CRAN