Skip to content

rsurv

0.0.2

Random Generation of Survival Data

1packages depend
7.5Kdownloads / year
79.5%test coverage
1/13checks pass

Overview

About
Maintained by Fabio DemarquiFirst published 2024-06-062 releasesCRAN page ↗GitHub ↗

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

CRAN checks
12NOTE1OK
Failing flavors
  • 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
Slowest check: 3.6 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.14
79.5%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • NOTE2026-07-29
    1 OK · 12 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-27
    1 OK · 11 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-06-09
    1 OK · 12 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    1 OK · 11 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-16
    4 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • ERROR2026-04-15
    3 OK · 10 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-30
    4 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-28
    4 OK · 9 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    4 OK · 10 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 251 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
7%

Downloads

7.5K
CRAN downloads in the past year
Rank #6,146 · ~21/day · ~626/mo
Daily download trend is not available in this view yet.
25730 days
1.3K90 days
7.5K1 year
Compare downloads with other packages →
Also on116 r2u14 autocran

Repository

Repository
4Stars
0Forks
0Open issues
0Open PRs
0Releases
38Commits
2Contributors
License GPL-3.0 · 38 commits · Last activity 2026-01-23

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
CRAN-SUBMISSION
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Development tooling

AI-assisted toolingBeta

Uses AI-assisted development tooling (declared in repo)

Earliest detected marker: copilot on 2026-01-20

copilot

Most recent: copilot on 2026-01-20

Evidence
  • copilot: on 2026-01-20 · evidence A, PR · sole bot-author seen
How this is detected·Detection ruleset v2 (updated 2026-07-29)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (1)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.2Latest
    2024-10-25 · current release · diff ↗
  • 0.0.1
    2024-06-06
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("rsurv")
Demarqui, F. (2024). rsurv: Random Generation of Survival Data (Version 0.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for rsurv version 0.0.2 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy