Package: rsurv 0.0.3

rsurv: 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, left-, right-, and double-truncated survival data, 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:10.48550/arXiv.2406.01750>.

Authors:Fabio Demarqui [aut, cre, cph]

rsurv_0.0.3.tar.gz
rsurv_0.0.3.zip(r-4.7)rsurv_0.0.3.zip(r-4.6)rsurv_0.0.3.zip(r-4.5)
rsurv_0.0.3.tgz(r-4.6-any)rsurv_0.0.3.tgz(r-4.5-any)
rsurv_0.0.3.tar.gz(r-4.7-any)rsurv_0.0.3.tar.gz(r-4.6-any)
rsurv_0.0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
rsurv/json (API)
NEWS

# Install 'rsurv' in R:
install.packages('rsurv', repos = c('https://fndemarqui.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/fndemarqui/rsurv/issues

Pkgdown/docs site:https://fndemarqui.github.io

On CRAN:

Conda:

5.00 score 4 stars 25 scripts 633 downloads 24 exports 71 dependencies

Last updated from:78e54546de. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK282
source / vignettesOK284
linux-release-x86_64OK241
macos-release-arm64OK163
macos-oldrel-arm64OK140
windows-develOK195
windows-releaseOK256
windows-oldrelOK189
wasm-releaseOK140

Exports:bernoullidfatiguedloglogisticdrayleighinv_pgflpnegbinpfatigueploglogisticprayleighqfatigueqloglogisticqrayleighraftregrahregrehregrfatiguerfrailtyrintervalrloglogisticrphregrporegrrayleighrypreg

Dependencies:abindbackportsbellregBHbroomcallrcheckmateclicpp11descdistributionaldplyremmeansestimabilityextraDistrfarverFormulagenericsggplot2gluegridExtragtableinlineisobandlabelingLambertWlamWlifecycleloomagicmagrittrMASSmatrixStatsmvtnormnumbersnumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreshape2rlangrstanrstantoolsS7scalesstabledistStanHeadersstringistringrtensorAtibbletidyrtidyselectutf8vctrsviridisLitewithr

Introduction to the R package rsurv

Rendered fromrsurv.Rmdusingknitr::rmarkdownon May 10 2026.

Last update: 2026-01-09
Started: 2024-06-05