R Observatory
Search
install.packages("survHE")
CRAN 30-day downloads, method
701+3.4% up on the 30 days before, the better direction
Test coverage, method
22%of lines run by tests

Contains a suite of functions for survival analysis in health economics. These can be used to run survival models under a frequentist (based on maximum likelihood) or a Bayesian approach (both based on Integrated Nested Laplace Approximation or Hamiltonian Monte Carlo).

Full description

Contains a suite of functions for survival analysis in health economics. These can be used to run survival models under a frequentist (based on maximum likelihood) or a Bayesian approach (both based on Integrated Nested Laplace Approximation or Hamiltonian Monte Carlo). To run the Bayesian models, the user needs to install additional modules (packages), i.e. 'survHEinla' and 'survHEhmc'. These can be installed from <https://giabaio.r-universe.dev/> using 'install.packages("survHEhmc", repos = c("https://giabaio.r-universe.dev", "https://cloud.r-project.org"))' and 'install.packages("survHEinla", repos = c("https://giabaio.r-universe.dev", "https://cloud.r-project.org"))' respectively. 'survHEinla' is based on the package INLA, which is available for download at <https://inla.r-inla-download.org/R/stable/>. The user can specify a set of parametric models using a common notation and select the preferred mode of inference. The results can also be post-processed to produce probabilistic sensitivity analysis and can be used to export the output to an Excel file (e.g. for a Markov model, as often done by modellers and practitioners). <doi:10.18637/jss.v095.i14>.

Maintainer
Gianluca Baio
Licence
GPL (>= 3)
Latest release
15 Jan 2026
First release
30 Jun 2017

Compare with another package

More details
Releases
14
Needs compilation
No
Needs R
>= 4.1.0
Config/testthat/edition
3
LazyData
true
RoxygenNote
7.3.2.9000
SystemRequirements
GNU make
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("survHE")
APA
Baio, G., Berardi, A., Cooney, P., Green, N., & Jones, A. (2026). survHE: Survival Analysis in Health Economic Evaluation (Version 2.0.51) [Computer software]. https://doi.org/10.32614/CRAN.package.survHE
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 survHE version 2.0.51 [Data set]. HJJB, LLC. Data release v2026-10-26. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-26, which the citation names so these numbers can be found later.

All 13 check platforms pass.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    OK

    Version checked
    2.0.51
    Time taken
    214 s
  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    OK

    Version checked
    2.0.51
    Time taken
    142 s
  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2.0.51
    Time taken
    174 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2.0.51
    Time taken
    141 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    329 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2.0.51
    Time taken
    48 s
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    168 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    271 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    200 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    197 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2.0.51
    Time taken
    45 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    209 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2.0.51
    Time taken
    197 s
  • 13 OK

Over time

No change since 4 Aug 2026

As a list (8)
ChangedWorst statusOKNotesWarningsErrors
4 Aug 2026OK13000
1 Aug 2026Note12100
9 Jun 2026OK13000
8 Jun 2026Error12001
25 Apr 2026OK12000
6 Apr 2026Note11300
4 Apr 2026Error10301
10 Mar 2026Note11300

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
705−0.71% down on the 30 days before, the worse directionIt is the sum of 3 channels: CRAN, r2u and autoCRAN.

CRAN rank

4,464 of 26,529

CRAN

701 downloads in the last 30 days

Rank
4,464 of 26,529
Change
+3.4% up on the 30 days before, the better direction

It is in the total. Take it out

r2u

3 downloads in the last 30 days

Rank
11,992 of 30,526
Change
−85.7% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

1 downloads in the last 30 days

Rank
25,624 of 29,130
Change
−90.9% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
9
Dependent packages
1
Suggested by
0
Needs (9)
Installing it adds
88 packages, 89.5 MB of source
Of those, need compilation
51
Optional extras (5)
Dependent packages (1)
PackageTitleDownloads in 30 days
blendRBlended Survival Curves264
Functions
77
Public exports
17
Lines of R code
5,101
Median complexity
3
Functions (77)
Size and composition

Lines by kind (6,439)

KindLinesShare
R code5,10179%
Tests380.6%
Documentation1,30020%

Lines by language

LanguageLinesShare
R5,13980%
Rd1,30020%

Languages are counted from file extensions.

Files
52
R functions
77
Object systems
S3: 3 methods
Complexity
Median
3
Mean
6.08
Highest
44
Median lines per function
25
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
77
Calls
37
Unconnected
38
Groups
6
Growth (14 releases)
Total lines by release
11,535 on 29 Jun 20176,439 on 15 Jan 2026
Release changes

The tests ran and coverage was measured.

Lines run by tests
22.1%
Expressions run by tests
15.1%
Test cases
1
Exports named in tests
17.6%
Coverage by file (17)
Coverage run
Lines counted
2,085
Lines the tests ran
460
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
1
Lines of tests
38
Test lines per line of code
0.01
Exports documented
100%
Arguments documented
100%
Return value documented
64.7%
Help pages with examples
81%
Examples run in checks
11.8%
Other documentation
README
No
Release notes file
Yes
Help pages
21
Lines of documentation
1,300
DatasetSizeColumns
dataA fictional survival trial.also in 1 other package367 × 8ID_patient, time, censored, arm, sex, age and 2 more
msmdataNICE TA174 dataset in multi-state format.1,868 × 16id, from, to, trans, Tstart, Tstop and 10 more
ta174NICE TA174 dataset.810 × 8patid, treat, prog, death, prog_t, death_t and 2 more

giabaio / survhe on github.com

Stars
48no change on 30 days ago
Forks
21
Open issues
11
Last commit
8 May 2026
Activity
Commits
463
Open pull requests
0
Tagged releases
6
Latest tagged release
2.0.51, 15 Jan 2026
In development
Default branch at 2.0.52, ahead of CRAN 2.0.51 (checked 2026-10-25)
Issues closed in
2 days (median)
Pull requests closed in
0 days (median)
Pull requests merged
89%
Created
7 Dec 2016
Licence file reads as
–
Development practices (5)
KindFound
Continuous integrationGitHub Actions, R CMD check workflow
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Docs sourceREADME.Rmd
GitHub Pages site last deployed 2017-07-08
Lint, format, editorRStudio project

Method, repository practices

Across giabaio

R releases
  • On CRAN
  • Release
VersionReleasedR
2.0.51 current15 Jan 20264.5.2
2.0.512 Jun 20254.5.0
2.0.415 May 20254.5.0
2.0.33 Mar 20254.4.3
2.0.24 Oct 20244.4.1
2.0.119 Mar 20234.2.3
1.1.29 Feb 20214.0.3
1.1.17 Oct 20204.0.2
Earlier versions (6)
VersionReleasedR
1.17 Aug 20204.0.2
1.0.659 Nov 20183.5.0
1.0.6419 Oct 20183.5.0
1.0.69 Jul 20173.4.1
1.0.52 Jul 20173.4.1
1.0.430 Jun 20173.4.1
Release notes (2.0.51)

January 2026

  • Aligns with changes in dplyr and adds id to the global functions.

July 2025

  • Slightly modifies the print method, so that the original=TRUE option can also be compounded with an additional option print_priors=TRUE. For HMC models, this also adds to the table of results a summary of the prior modelling assumptions.