Skip to content

simsurv

1.0.1

Simulate Survival Data

6packages depend
16.7Kdownloads / year
0.0%test coverage
13/13checks pass

Overview

About
Maintained by Sam BrillemanFirst published 2017-07-276 releasesCRAN page ↗GitHub ↗

Simulate survival times from standard parametric survival distributions (exponential, Weibull, Gompertz), 2-component mixture distributions, or a user-defined hazard, log hazard, cumulative hazard, or log cumulative hazard function. Baseline covariates can be included under a proportional hazards assumption. Time dependent effects (i.e. non-proportional hazards) can be included by interacting covariates with linear time or a user-defined function of time. Clustered event times are also accommodated. The 2-component mixture distributions can allow for a variety of flexible baseline hazard functions reflecting those seen in practice. If the user wishes to provide a user-defined hazard or log hazard function then this is possible, and the resulting cumulative hazard function does not need to have a closed-form solution. For details see the supporting paper doi:10.18637/jss.v097.i03. Note that this package is modelled on the 'survsim' package available in the 'Stata' software (see Crowther and Lambert (2012) https://www.stata-journal.com/sjpdf.html?articlenum=st0275 or Crowther and Lambert (2013) doi:10.1002/sim.5823).

Install

Health

CRAN checks
13OK
Slowest check: 6.6 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.14
0.0%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
95%
Return-value docs
100%
References docs
100%

Downloads

16.7K
CRAN downloads in the past year
Rank #3,942 · ~46/day · ~1.4K/mo
Daily download trend is not available in this view yet.
58130 days
2.2K90 days
16.7K1 year
Compare downloads with other packages →
Also on168 r2u17 autocran74 c2d4u

Repository

Repository
24Stars
8Forks
7Open issues
0Open PRs
5Releases
127Commits
4Contributors
License GPL-3.0 · 127 commits · Last activity 2026-01-22

Stars over time

2025-06-20 · 242026-07-07 · 24

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/sambrilleman/simsurv on 2026-08-16.

CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.3.0
Imports (2)
methodsstats
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Maintainer, Author, Copyright holder
Authors (1)
Maintainer, Author, Copyright holder
Contributors (1)
Contributor · added in 0.2.2
Copyright holders (1)
Maintainer, Author, Copyright holder
Package Timeline

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

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.1Latest
    2026-01-22 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0.0
    2021-01-13 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.3
    2019-02-01 · diff ↗
  • 0.2.2
    2018-05-18 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.0
    2018-03-06 · diff ↗
  • 0.1.0
    2017-07-27
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-07-27
Total releases
6 / 9 yrs
License
GPL (>= 3) | file LICENSE OSI
Minimum R
≥ 3.3.0
Bundled data
3.5 KB / 1 file
Download size
124 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("simsurv")
Brilleman, S., & Gasparini, A. (2026). simsurv: Simulate Survival Data (Version 1.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.simsurv

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 simsurv version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, 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