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, 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.5)rsurv_0.0.3.zip(r-4.4)rsurv_0.0.3.zip(r-4.3)
rsurv_0.0.3.tgz(r-4.5-any)rsurv_0.0.3.tgz(r-4.4-any)rsurv_0.0.3.tgz(r-4.3-any)
rsurv_0.0.3.tar.gz(r-4.5-noble)rsurv_0.0.3.tar.gz(r-4.4-noble)
rsurv_0.0.3.tgz(r-4.4-emscripten)rsurv_0.0.3.tgz(r-4.3-emscripten)
rsurv.pdf |rsurv.html
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 site:https://fndemarqui.github.io

On CRAN:

Conda:

4.56 score 1 stars 24 scripts 602 downloads 13 exports 70 dependencies

Last updated 2 months agofrom:3d4f1b0292. Checks:7 OK, 2 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 08 2025
R-4.5-winNOTEMar 08 2025
R-4.5-macOKMar 08 2025
R-4.5-linuxNOTEMar 08 2025
R-4.4-winOKMar 08 2025
R-4.4-macOKMar 08 2025
R-4.4-linuxOKMar 08 2025
R-4.3-winOKMar 08 2025
R-4.3-macOKMar 08 2025

Exports:bernoulliinv_pgflpnegbinqsurvraftregrahregrehregrfrailtyrintervalrphregrporegrypreg

Dependencies:abindbackportsbellregBHcallrcheckmateclicolorspacedescdistributionaldplyrextraDistrfansifarverFormulagenericsggplot2gluegridExtragtableinlineisobandlabelingLambertWlamWlatticelifecycleloomagicmagrittrMASSMatrixmatrixStatsmgcvmunsellnlmenumbersnumDerivpillarpkgbuildpkgconfigplyrposteriorprocessxpspurrrQuickJSRR6rbibutilsRColorBrewerRcppRcppEigenRcppParallelRdpackreshape2rlangrstanrstantoolsscalesstabledistStanHeadersstringistringrtensorAtibbletidyselectutf8vctrsviridisLitewithr

Introduction to the R package rsurv

Rendered fromrsurv.Rmdusingknitr::rmarkdownon Mar 08 2025.

Last update: 2025-02-06
Started: 2024-06-05