Giter Site home page Giter Site logo

rfsaldanha / cohort-modeling-tutorial-intro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darth-git/cohort-modeling-tutorial-intro

0.0 1.0 0.0 26.6 MB

An Introductory Tutorial to Cohort State-Transition Models in R

License: MIT License

R 36.67% TeX 63.33%

cohort-modeling-tutorial-intro's Introduction

DOI

An Introductory Tutorial on Cohort State-Transition Models in R Using a Cost-Effectiveness Analysis Example

This GitHub repository provides the code of the tutorial on how to implement time-independent cohort state-transition models (cSTMs) in R using a cost-effectiveness analysis (CEA) example, explained in the following manuscript:

The release that accompanies the published article has been archived in zenodo: https://zenodo.org/badge/latestdoi/357362984

The R folder includes two different scripts corresponding to functions used to synthesize cSTMs outputs and conduct several sensitivity analyses:

  • Funtions.R: Functions that generate epidemiological measures from time-independent cSTMs and compute within-cycle correction, parameter transformation, matrix checks, and CEA and PSA visualization.
  • Functions_cSTM_time_indep.R: These functions wrap the time-independent cSTM, compute CEA measures, and generate probabilistic sensitivity analysis (PSA) input datasets.

How to cite this R code in your article

You can cite the R code in this repository like this “we based our analysis using the R code from Alarid-Escudero F et al. (2022)”. Here is the full bibliographic reference to include in your reference list for the manuscript and the R code (don’t forget to update the ‘last accessed’ date):

Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H. An Introductory Tutorial on Cohort State-Transition Models in R Using a Cost-Effectiveness Analysis Example. Medical Decision Making, 2023;43(1):3-20.

Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H (2022). R Code for An Introductory Tutorial on Cohort State-Transition Models in R Using a Cost-Effectiveness Analysis Example (Version v0.2.1). Zenodo. 10.5281/zenodo.5223093. Last accessed 30 March 2022.

If you adapted the code, you should indicate “Adapted from:” or “Based on” so it is understood that you modified the code. For more information on how to cite computer code, we refer the user to review Writing Code (from MIT Research Guide), which provides examples of how and when to cite computer code.

Advanced state-transition cohort modeling

To learn more on on how to implement time-dependent cohort state-transition models (cSTMs) in R using a cost-effectiveness analysis (CEA) example, we refer the reader to the following manuscript:

Preliminaries

# Install release version from CRAN
install.packages("dampack")

# Or install development version from GitHub
# devtools::install_github("DARTH-git/dampack")
# Install release version from CRAN
install.packages("devtools")

# Or install development version from GitHub
# devtools::install_github("r-lib/devtools")
  • Install darthtools using devtools
# Install development version from GitHub
devtools::install_github("DARTH-git/darthtools")

We recommend familiarizing with the DARTH coding framework described in

To run the CEA, you require dampack: Decision-Analytic Modeling Package, an R package for analyzing and visualizing the health economic outputs of decision models.

Use repository as a regular coding template

  1. On the tutorial’s GitHub repository, navigate to the main page of the repository (https://github.com/DARTH-git/cohort-modeling-tutorial-intro).
  2. Above the file list, click Clone or download and select either
    1. Open in desktop, which requires the user to have a GitHub desktop installed, or
    2. Download zip that will ask the user to download the whole repository as a .zip file.
  3. Open the RStudio project cohort-modeling-tutorial-intro.Rproj.
  4. Install all the required packages (as mentioned above)
  5. Run the scripts in the analysis folder.
  6. Modify or adapt these scripts as needed for your project or analysis.

Full list of Contributors:

cohort-modeling-tutorial-intro's People

Contributors

feralaes avatar krijkamp avatar

Watchers

 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.