Skip to content

rsurv

0.0.2Package record

Random Generation of Survival Data

0packages dependsuggested by 2
7Kdownloads / year
79.5%test coverage
1/13flavors OK

Overview

About

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.

Changes in 0.0.2
  • dplyr package has been moved from Depends to Imports field;
  • package argument has been added to the function qsurv() to ensure that the right function from the right package is found depending on the search path;
  • Function inv_pgf() was reimplemented to allow the use of the stats::poisson() function in the the incidence argument.
  • the r*reg() functions now make sure that there is always a baseline distribution, like in the function survival::coxph().

From NEWS.md in the release

Install

Health

CRAN checks
12NOTE1OK
Check messages
NOTEDESCRIPTION meta-informationr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64

r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-oldrel-macos-arm64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    ‘lp.Rd’

r-devel-windows-x86_64, r-oldrel-windows-x86_64, r-release-windows-x86_64

Missing dependency on R >= 4.1.0 because package code uses the pipe
  |> or function shorthand \(...) syntax added in R 4.1.0.
  File(s) using such syntax:
    'lp.Rd'

CRAN check page ↗

Slowest check: 3.6 min · r-oldrel-macos-x86_64
Status changes
  • NOTE1 OK, 12 NOTE2026-07-29
  • ERROR1 OK, 11 NOTE, 1 ERROR2026-07-27
  • NOTE1 OK, 12 NOTE2026-06-09
  • ERROR1 OK, 11 NOTE, 1 ERROR2026-06-08
  • NOTE4 OK, 10 NOTE2026-04-16
Show 4 earlier changesHide 4 earlier changes
  • ERROR3 OK, 10 NOTE, 1 ERROR2026-04-15
  • NOTE4 OK, 10 NOTE2026-03-30
  • ERROR4 OK, 9 NOTE, 1 ERROR2026-03-28
  • NOTE4 OK, 10 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.0.2
READMEYes · 251 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.0.2Citation fileNoWebsiteYes · pkgdown
Help pages
14includes a package overview page
Examples that run
100%8 run in a plain check
Exported functions with examples
62%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
7% with a bibliography file

Downloads

7K
CRAN downloads in the past year
Rank #7,398 · ~19/day · ~583/mo
Daily download trend is not available in this view yet.
45630 days
1.2K90 days
7K1 year
Compare downloads with other packages →
Also on91 r2u4 autocran

Repository

4Stars
0Forks
0Open issues
0Open PRs
0Releases
38Commits
2Commit identities
License file reads as GPL-3.0 · 38 commits · Last activity 2026-01-23 · Default branch at 0.0.3, ahead of CRAN 0.0.2 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
28
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

8 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/fndemarqui/rsurv on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-23 · The repository has a site deploy workflow

pkgdown site last built 2026-01-23

CRAN release process (1)
CRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • GitHub Copilotfirst seen 2026-01-20
    Pull request: opened by its own account
    Commits: 2 by its own account
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing rsurv adds 66 packages (34 with compiled code, 60 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (1)
R >= 3.4.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 0.0.1 (2024), Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 0.0.2Latest
    record
    2024-10-25 · current release · diff ↗ ·
    removed 2 exports
    bell, poisson
    added 1 export
    qsurv
  • 0.0.1
    record
    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
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 package has no citation file, so citation() returns this entry built from DESCRIPTION.

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-10-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-24, 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