Fitting Survival Regression Models via 'Stan'
Overview
Parametric survival regression models under the maximum likelihood approach via 'Stan'. Implemented regression models include accelerated failure time models, proportional hazards models, proportional odds models, accelerated hazard models, Yang and Prentice models, and extended hazard models. Available baseline survival distributions include exponential, Weibull, log-normal, log-logistic, gamma, generalized gamma, rayleigh, Gompertz and fatigue (Birnbaum-Saunders) distributions. References: Lawless (2002) <ISBN:9780471372158>; Bennett (1982) doi:10.1002/sim.4780020223; Chen and Wang(2000) doi:10.1080/01621459.2000.10474236; Demarqui and Mayrink (2021) doi:10.1214/20-BJPS471.
- survfit.survstan method now returns a data.frame with the observed survival times and their corresponding estimated baseline survivals when newdata = NULL.
From NEWS.md in the release
Install
Health
NOTEdependencies in R coder-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Namespaces in Imports field not imported from: ‘RcppParallel’ ‘rstantools’ All declared Imports should be used.
- NOTE11 OK, 2 NOTE2026-09-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-09-04
- NOTE11 OK, 2 NOTE2026-07-29
- ERROR10 OK, 2 NOTE, 1 ERROR2026-07-27
- NOTE11 OK, 2 NOTE2026-07-18
Show 6 earlier changesHide 6 earlier changes
- WARNING11 OK, 1 NOTE, 1 WARNING2026-07-16
- NOTE11 OK, 2 NOTE2026-06-09
- ERROR10 OK, 2 NOTE, 1 ERROR2026-06-08
- NOTE9 OK, 5 NOTE2026-04-22
- ERROR8 OK, 5 NOTE, 1 ERROR2026-04-18
- NOTE9 OK, 5 NOTE2026-03-10
Documentation
- Help pages
- 35 (1 internal)includes a package overview page
- Examples that run
- 0%22 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 53%
- Documented parameters
- 96%
- Return-value docs
- 93%
- Help pages citing references
- 9% with a bibliography file
Downloads
Repository
- PRs merged (all time)
- 67%
- Median days to close, 50 most recently updated closed issues
- 0
- Median days to close, 50 most recently updated closed PRs
- 66
Stars over time
Forks over time
PRs over time
9 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/fndemarqui/survstan on 2026-10-21.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-11-17 · The repository has a site deploy workflow
pkgdown site last built 2025-11-17
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2026-04-10Pull request: opened by its own account
Dependencies
Installing survstan adds 70 packages (34 with compiled code, 63 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.0.7.1Latest
- 0.0.72024-03-21 · diff ↗ ·
added 12 exports
dggprentice, dggstacy, dgompertz, pggprentice, pggstacy, pgompertz, qggprentice, qggstacy, qgompertz, rggprentice, rggstacy, rgompertz - 0.0.6.12024-02-05 · diff ↗
- 0.0.6
- 0.0.5
- 0.0.42023-09-21 · diff ↗
- 0.0.3
- 0.0.2
- 0.0.12023-05-04
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-05-04
- Total releases
- 9 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.4.0
- Bundled data
- 5.7 KB / 2 files
- Download size
- 139 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("survstan")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.
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.