Git Product home page Git Product logo

zhaojingche / survhe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from giabaio/survhe

0.0 0.0 0.0 132.51 MB

Survival analysis in health economic evaluation 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.

R 24.15% Shell 0.08% Stan 2.81% C++ 72.96%

survhe's Introduction

survHE Travis-CI Build StatusAppVeyor Build StatusCRAN_Status_BadgeCRAN_Download_BadgeCRAN_Download_Badge

Survival analysis in health economic evaluation

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.

Installation

There are two ways of installing survHE. A "stable" version is packaged and binary files are available for Windows and as source. To install the stable version on a Windows machine, run the following commands

install.packages("survHE",
	repos=c("http://www.statistica.it/gianluca/R",
		"https://cran.rstudio.org",
                "https://inla.r-inla-download.org/R/stable"),
	dependencies=TRUE
)

Note that you need to specify a vector of repositories - the first one hosts survHE, while the second one should be an official CRAN mirror. You can select whichever one you like, but a CRAN mirror must be provided, so that install.packages() can also install the "dependencies" (e.g. other packages that are required for survHE to work). The third one is used to install the package INLA, which is used to do one version of the Bayesian analysis. This process can be quite lengthy, if you miss many of the relevant packages.

To install from source (e.g. on a Linux machine), run

install.packages("survHE",
	repos=c("http://www.statistica.it/gianluca/R",
		"https://cran.rstudio.org",
		"https://inla.r-inla-download.org/R/stable"),
	type="source",
	dependencies=TRUE
)

The second way involves using the GitHub version of survHE - this will usually be updated more frequently and may be continuously tested. On Windows machines, you need to install a few dependencies, including Rtools first, e.g. by running

pkgs <- c("flexsurv","Rcpp","rms","xlsx","rstan","INLA","Rtools","devtools")
repos <- c("https://cran.rstudio.com", "https://inla.r-inla-download.org/R/stable") 
install.packages(pkgs,repos=repos,dependencies = "Depends")

before installing the package using devtools:

devtools::install_github("giabaio/survHE")

Under Linux or MacOS, it is sufficient to install the package via devtools:

install.packages("devtools")
devtools:install_github("giabaio/survHE")

The current GitHub master version of survHE is aligned with the CRAN release. We'll update it to fix minor issues if and when we discover them, so we recommend that users install this to ensure a smoother workflow.

There is also a development version of survHE, which is available under https://github.com/giabaio/survHE/tree/devel. This will be continously updated, but it will be less stable than the master version, as we will use it to test new functionalities. We recommend you use it only if you are an experienced R user.

survhe's People

Contributors

giabaio avatar lemna avatar andreaberardi avatar andbe avatar bgoodri 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.