Code Monkey home page Code Monkey logo

giabaio / survhehmc Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 75 KB

Survival analysis in health economic evaluation using Bayesian modelling and Hamiltonian Monte Carlo Contains a suite of functions to systematise the workflow involving survival analysis in health economic evaluation.

Home Page: https://gianluca.statistica.it/software/survhe/

License: Other

R 7.19% Shell 0.03% C++ 88.00% Stan 4.78%
hamiltonian-monte-carlo health-economic-evaluations rstan survival-analysis uncertainty

survhehmc's Introduction

survHEhmc

Survival analysis in health economic evaluation using HMC/stan

This is a module to complement the package survHE and expand its functionalities to run survival analysis in health economic evaluation from a Bayesian perspective, using Hamiltonian Monte Carlo (via the R package rstan). survHEhmc "depends" on the main installation of survHE. This means that you shouldn't use survHEhmc as a standalone package --- rather you use all the functions of survHE (to fit the models and the post-process the results); installing survHEhmc basically opens up a new option in the survHE function fit.models, which allow the use of INLA to run the underlying survival analysis.

Installation

survHEhmc can be installed from this GitHub repository using the package remotes:

remotes::install_github("giabaio/survHEhmc")

Usage

Once survHEhmc is available, then you can refer to the whole manual/instructions for survHE. For instance, to fit a model using HMC, the following code would work:

# Load survHE
library(survHE)

# Loads an example dataset from 'flexsurv'
data(bc)

# Fits the same model using HMC
hmc = fit.models(formula=Surv(recyrs,censrec)~group,data=bc,
   distr="exp",method="hmc")
   
# Prints the results using the survHE method
print(hmc)

# Or visualises the results using the original package methods
print(hmc,original=TRUE)

# Plots the survival curves and estimates
plot(hmc)

Basically, the user doesn't even "see" that survHEhmc is being used...

survhehmc's People

Contributors

giabaio avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.