Skip to content

survstan

0.0.7.1Package record

Fitting Survival Regression Models via 'Stan'

0packages dependsuggested by 1
3.5Kdownloads / year
66.4%test coverage
11/13flavors OK

Overview

About

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.

Changes in 0.0.7.1
  • 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

CRAN checks
2NOTE11OK
Check messages
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.

CRAN check page ↗

Slowest check: 10.6 min · r-oldrel-windows-x86_64
Status changes
  • 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
Advisories

none known

Documentation

In release 0.0.7.1
READMEYes · 1,465 wordsVignettesYes · 2 · dynamicNEWSYes · 67% structured · mentions 0.0.7.1Citation fileNoWebsiteYes · pkgdown
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

3.5K
CRAN downloads in the past year
Rank #9,585 · ~9/day · ~289/mo
Daily download trend is not available in this view yet.
36030 days
1K90 days
3.5K1 year
Compare downloads with other packages →
Also on405 r2u4 autocran

Repository

10Stars
3Forks
0Open issues
0Open PRs
0Releases
78Commits
2Commit identities
78 commits · Last activity 2025-11-17 · 0% stars, 30d · Default branch at 0.1.0, ahead of CRAN 0.0.7.1 (checked 2026-10-21)
Responsiveness
How these are sampled
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

2025-09-11 · 72026-08-22 · 10
PracticesBeta

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.

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 2025-11-17 · The repository has a site deploy workflow

pkgdown site last built 2025-11-17

CRAN release process (2)
cran-comments.mdCRAN-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-04-10
    Pull request: opened by its own account
How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
31 external dependencies (excludes base and recommended)

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.

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

Datasets

People & History

People (2)
Author, Maintainer since 0.0.1 (2023), Copyright holder
Contributor · added in 0.0.6
Releases (9)

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
  • R
    R 4.4.0 released · 2024-04-24
  • 0.0.7.1Latest
    record
    2024-04-12 · current release · diff ↗
  • 0.0.7
    record
    2024-03-21 · diff ↗ ·
    added 12 exports
    dggprentice, dggstacy, dgompertz, pggprentice, pggstacy, pgompertz, qggprentice, qggstacy, qgompertz, rggprentice, rggstacy, rgompertz
  • 0.0.6.1
    record
    2024-02-05 · diff ↗
  • 0.0.6
    record
    2024-01-18 · diff ↗ ·
    added 1 export
    ehreg
  • 0.0.5
    record
    2023-12-18 · diff ↗ ·
    added 1 export
    se
  • 0.0.4
    record
    2023-09-21 · diff ↗
  • 0.0.3
    record
    2023-08-09 · diff ↗ ·
    added 1 export
    rank_models
  • 0.0.2
    record
    2023-06-09 · diff ↗ ·
    added 2 exports
    cross_time, ypreg
  • 0.0.1
    record
    2023-05-04
  • R
    R 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
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("survstan")
Demarqui, F., & Johnson, A. (2024). survstan: Fitting Survival Regression Models via 'Stan' (Version 0.0.7.1) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for survstan version 0.0.7.1 [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