rsurv
0.0.2Random Generation of Survival Data
Overview
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.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE r-oldrel-macos-arm64
- NOTE r-oldrel-windows-x86_64
- NOTE r-patched-linux-x86_64
- NOTE r-release-linux-x86_64
- NOTE r-release-macos-arm64
- NOTE r-release-macos-x86_64
- NOTE r-release-windows-x86_64
- NOTE2026-07-291 OK · 12 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-07-271 OK · 11 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-06-091 OK · 12 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-081 OK · 11 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-04-164 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
- ERROR2026-04-153 OK · 10 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-304 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-03-284 OK · 9 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-104 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 7%
Downloads
Repository
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/fndemarqui/rsurv on 2026-08-16.
Development tooling
Uses AI-assisted development tooling (declared in repo)
Earliest detected marker: copilot on 2026-01-20
Most recent: copilot on 2026-01-20
- copilot: on 2026-01-20 · evidence A, PR · sole bot-author seen
Dependencies
Code & Tests
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.0.2Latest
- 0.0.12024-06-06
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-06-06
- Total releases
- 2 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.4.0
- Download size
- 56 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("rsurv")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.