🚀 This is the development version of the R
package survHE
(currently at version 2.0.51). A “stable” version (as of 11 July 2025:
2.0.5) is packaged and available from
CRAN.
Contains a suite of functions to systematise the workflow involving survival analysis in health economic evaluation. survHE can fit a large range of survival models using both a frequentist approach (by calling the R package flexsurv) and a Bayesian perspective. For a selected range of models, both Integrated Nested Laplace Integration (via the R package INLA) and Hamiltonian Monte Carlo (via the R package rstan) are possible. HMC models are pre-compiled so that they can run in a very efficient and fast way. In addition to model fitting, survHE provides a set of specialised functions, for example to perform Probabilistic Sensitivity Analysis, export the results of the modelling to a spreadsheet, plotting survival curves and uncertainty around the mean estimates.
NB: To run the Bayesian models, as of version 2.0 of survHE
, it is
necessary to install the additional packages
survHEinla
and/or
survHEhmc
, which are available
from this GitHub repository. The reason for this structural change is
that in this way, the basic backbone of survHE
(available from this
main
branch of the repo) becomes a very lean package, whose
installation is very quick. More details
here.
All the functionalities are in place for survHE
to easily extend to
the Bayesian versions, once one or both of the additional “modules” is
also installed.
The most updated version can be installed using the following code.
install.packages(
"survHE",
repos = c("https://giabaio.r-universe.dev", "https://cloud.r-project.org")
)
To run the Bayesian versions of the models, you also need to install the ancillary packages
# Bayesian models using HMC/Stan
install.packages(
"survHEhmc",
repos = c("https://giabaio.r-universe.dev", "https://cloud.r-project.org"),
dependencies=TRUE
)
# Bayesian models using INLA
install.packages(
"survHEinla",
repos = c(
"https://giabaio.r-universe.dev",
"https://cloud.r-project.org",
"https://inla.r-inla-download.org/R/stable"
),
dependencies=TRUE
)
(these two are optional, in some sense, so you don’t have to, unless you want to do the right thing and be Bayesian about it… 😉)