HeRoMod
An R package for running cost-effectiveness models in R. Forked from the heemod package.
Install / Use
/learn @PolicyAnalysisInc/HeRoModREADME
heRomod - A Package for Health Economic Modeling
The heRomod package allows users to develop and run cost-effectiveness models in R and is the calculation engine used in the heRo web-based modeling platform. A fork of the HEEMOD package.
You can install the latest released version from github with:
Developing Locally
If you want to run the package locally from source
-
Install R (>= 3.4.0) for your platform.
- For Windows users, it is recommended to check Save version number in registry during installation so that the R extension can find the R executable automatically.
- For mac users, use brew to install R and dependencies in terminal
brew install rbrew install libgit2 harfbuzz fribidi freetype2 libpng libtiff libjpeg pandoc
-
Open an R terminal executing
rin your terminal- In some shells,
ris a built-in command to re-run the last command.- You can verify it running
which r. - If the response is
r: shell built-in commandyou will need to alias it. - First check the path:
whereis r - Then open you
rcfile (.bashrc,.zshrcor the one you use it) and add:alias r='<your-path-to-r>'. - For example:
alias r='/opt/homebrew/bin/r' - Restart your shell
- You can verify it running
- In some shells,
-
Run the following into your R terminal:
install.packages("remotes") install.packages("languageserver") install.packages("usethis") install.packages("pkgdown") install.packages("devtools") remotes::install_github("PolicyAnalysisInc/herotools") remotes::install_github("PolicyAnalysisInc/herosurv") -
Install the R extension for VS Code from the VS Code Extension Marketplace
-
Test the build command
devtools::install(dependencies=F)devtools::build(vignettes=T)
-
Run the tests (note - this will take significant time, especially running the heRo model)
devtools::test()
Running the heroMod package locally
-
Install the Github package manager and Hero remotes
if(!require(remotes)) { install.packages('remotes') } Sys.setenv("R_REMOTES_NO_ERRORS_FROM_WARNINGS" = "true") remotes::install_github("PolicyAnalysisInc/herotools") remotes::install_github("PolicyAnalysisInc/herosurv") -
Install heromod (if prompted you can install "All")
remotes::install_github("PolicyAnalysisInc/heRomod")
Features
- Support for Markov cohort and partitioned-survival models.
- Comprehensive tools for defining and operation of survival distribtions.
- Probabilistic uncertainty analysis (PSA).
- Cost-effectiveness acceptability curves (CEAC).
- Expected value of perfect information (EVPI).
- Expected value of partially perfect information (EVPPI).
- Deterministic sensitivity analysis (DSA).
- Value-based pricing analysis (VBP).
Devs
Contributors
Related Skills
node-connect
339.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
