Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: arxiv.org -
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.9%) to scientific vocabulary
Keywords
health-economic-evaluation
microsimulation
r
simulation-modeling
Last synced: 6 months ago
·
JSON representation
Repository
Health economic simulation modeling and decision analysis
Basic Info
- Host: GitHub
- Owner: hesim-dev
- Language: R
- Default Branch: main
- Homepage: https://hesim-dev.github.io/hesim/
- Size: 112 MB
Statistics
- Stars: 71
- Watchers: 13
- Forks: 19
- Open Issues: 15
- Releases: 15
Topics
health-economic-evaluation
microsimulation
r
simulation-modeling
Created almost 10 years ago
· Last pushed 8 months ago
Metadata Files
Readme
Changelog
Codeowners
README.Rmd
--- output: github_document always_allow_html: true --- # Health economic simulation modeling[](https://cran.r-project.org/package=hesim) [](https://app.codecov.io/gh/hesim-dev/hesim) [](https://github.com/hesim-dev/hesim/actions/workflows/R-CMD-check.yaml) ## Overview `hesim` is a modular and computationally efficient R package for health economic simulation modeling and decision analysis that provides a general framework for integrating statistical analyses with economic evaluation. The package supports cohort discrete time state transition models (DTSTMs), N-state partitioned survival models (PSMs), and individual-level continuous time state transition models (CTSTMs), encompassing both Markov (time-homogeneous and time-inhomogeneous) and semi-Markov processes. It heavily utilizes `Rcpp` and `data.table`, making individual-level simulation, probabilistic sensitivity analysis (PSA), and incorporation of patient heterogeneity fast. Features of the current version can be summarized as follows: * Cohort DTSTMs, individual-level CTSTMs, and N-state PSMs that encompass Markov and semi-Markov processes * Options to build models directly from fitted statistical models or by defining them in terms of expressions * Parameter estimates from either an `R` based model or from an external source * Convenience functions for sampling model parameters from parametric distributions or via bootstrapping * Parameter uncertainty propagated with PSA * Modeling patient heterogeneity * Performing cost-effectiveness analyses and representing decision uncertainty from PSAs * Simulation code written in `C++` to boost performance ## Installation You can install the [current release](https://hesim-dev.github.io/hesim/) from CRAN or the most up to date development version from GitHub. ```{r, eval = FALSE} # Install from CRAN: install.packages("hesim") # Install the development version from GitHub: # install.packages("devtools") devtools::install_github("hesim-dev/hesim") ``` ## Getting started There are two good places to start: 1. The [Introduction to `hesim`](https://hesim-dev.github.io/hesim/articles/intro.html) article provides a quick introduction. 2. Our [preprint](https://arxiv.org/abs/2102.09437) describes the package (including mathematical details) more thoroughly. You might also want to explore our example analyses which can be found in the preprint and web articles. They are summarized in the table below, with some drawn from the [Decision Modeling for Health Economic Evaluation](https://www.herc.ox.ac.uk/downloads/decision-modelling-for-health-economic-evaluation) textbook. Key areas of focus are the (i) statistical models of disease progression (in terms of the baseline risk and relative treatment effects) and (ii) the available data (either individual patient data (IPD) or aggregate-level data). ```{r echo = FALSE, message = FALSE, warning = FALSE} library("knitr") library("kableExtra") level <- c("Cohort", "Cohort", "Cohort", "Cohort", "Individual", "Individual", "Cohort") links <- c( rep("https://arxiv.org/pdf/2102.09437", 3), "https://hesim-dev.github.io/hesim/articles/markov-cohort.html", "https://hesim-dev.github.io/hesim/articles/markov-inhomogeneous-cohort.html", "https://hesim-dev.github.io/hesim/articles/mlogit.html", "https://hesim-dev.github.io/hesim/articles/markov-inhomogeneous-indiv.html", "https://hesim-dev.github.io/hesim/articles/mstate.html", "https://hesim-dev.github.io/hesim/articles/psm.html" ) name <- c( "Preprint 4.1", "Preprint 4.2", "Preprint 4.3", "Simple Markov cohort", "Time inhomogeneous Markov (cohort)", "Multinomial logit", "Time inhomogeneous Markov (individual)", "Semi-Markov multi-state", "4-state PSM" ) name <- cell_spec(name, link = links) model <- c("iCTSTM", "PSM", "cDTSTM", "cDTSTM", "cDTSTM", "cDTSTM", "iCTSTM", "iCTSTM", "PSM") num <- 1:length(model) application <- c(rep("Oncology", 3),"HIV", "Hip replacement", "Generic", "Hip replacement", "Generic", "Oncology") dismod1 <- c("Multi-state model", "Survival models", "Multi-state model (panel data)", "Multinomial", "Custom", "Multinomial logit", "Custom", "Multi-state model", "Survival models") dismod2 <- c("Coefficient (AFT)", "Coefficient (AFT)" , "RR", "RR", "Coefficient (HR)", "Coefficient (OR)", "Coefficient (HR)", "Coefficient (AFT)", "Coefficient (AFT)") data1 <- c(rep("IPD", 3), "Aggregate", "Aggregate", "IPD", "Aggregate", "IPD", "IPD") data2 <- c("IPD", rep("Aggregate", 2), "Aggregate", "Aggregate", "IPD", "Aggregate", "IPD", "IPD") tbl <- cbind(num, name, model, dismod1, data1, dismod2, data2, application) colnames(tbl) <- c("", "Name", "Model", rep(c("Disease model", "Disease data"), 2), "Application") rownames(tbl) <- 1:nrow(tbl) kable(tbl, row.names = FALSE, escape = FALSE) %>% kable_styling() %>% add_header_above(c(rep("", 3), "Baseline risk" = 2, "Treatment effect" = 2, "")) %>% column_spec(2, width = "15em") %>% footnote(general = paste0( "iCTSTM = Individual-level continuous time state transition model; ", "PSM = partitioned survival model; ", "cDTSTM = Cohort discrete time state transition model. ", "AFT = accelerated failure time; RR = relative risk; HR = hazard ratio; OR = odds ratio. ", "IPD = individual patient data. "), footnote_as_chunk = TRUE) ``` ## Citing hesim If you use `hesim`, please cite as follows: ```{r, echo = FALSE, comment = ""} citation("hesim") ```
Owner
- Name: hesim-dev
- Login: hesim-dev
- Kind: organization
- Website: http://hesim-dev.github.io/hesim/
- Repositories: 2
- Profile: https://github.com/hesim-dev
Simulation software for epidemiology and health economics
GitHub Events
Total
- Issues event: 8
- Watch event: 7
- Delete event: 2
- Issue comment event: 7
- Push event: 11
- Pull request review comment event: 9
- Pull request review event: 11
- Pull request event: 8
- Fork event: 2
- Create event: 2
Last Year
- Issues event: 8
- Watch event: 7
- Delete event: 2
- Issue comment event: 7
- Push event: 11
- Pull request review comment event: 9
- Pull request review event: 11
- Pull request event: 8
- Fork event: 2
- Create event: 2
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| dincerti | d****i@g****m | 794 |
| Devin.Incerti | d****i@O****l | 59 |
| Mark Clements | m****s@k****e | 5 |
| Jeff Sullivan | j****n@p****m | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 38
- Total pull requests: 95
- Average time to close issues: about 1 month
- Average time to close pull requests: 4 days
- Total issue authors: 18
- Total pull request authors: 6
- Average comments per issue: 1.92
- Average comments per pull request: 0.85
- Merged pull requests: 89
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 7
- Pull requests: 11
- Average time to close issues: 8 days
- Average time to close pull requests: 19 days
- Issue authors: 3
- Pull request authors: 4
- Average comments per issue: 0.71
- Average comments per pull request: 1.27
- Merged pull requests: 8
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- dincerti (12)
- caterinagregorio (3)
- mclements (3)
- aheff (3)
- mcincam100 (2)
- heor-andreas (2)
- swaheera (2)
- Djema1406 (1)
- mattsecrest (1)
- oliver-diaz (1)
- rucabe (1)
- rafanmir (1)
- sdaza (1)
- Healtheconomist (1)
- canuckafar (1)
Pull Request Authors
- dincerti (94)
- mclements (11)
- chjackson (2)
- teunbrand (2)
- RobertASmithBresMed (1)
- rhart1 (1)
Top Labels
Issue Labels
help wanted (2)
question (2)
enhancement (2)
bug (2)
Pull Request Labels
enhancement (2)
Packages
- Total packages: 1
-
Total downloads:
- cran 505 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 16
- Total maintainers: 1
cran.r-project.org: hesim
Health Economic Simulation Modeling and Decision Analysis
- Homepage: https://hesim-dev.github.io/hesim/
- Documentation: http://cran.r-project.org/web/packages/hesim/hesim.pdf
- License: GPL-3
-
Latest release: 0.5.5
published over 1 year ago
Rankings
Forks count: 5.2%
Stargazers count: 5.8%
Average: 16.4%
Downloads: 18.4%
Dependent repos count: 23.9%
Dependent packages count: 28.7%
Maintainers (1)
Last synced:
7 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5.0 depends
- MASS * imports
- R6 * imports
- Rcpp >= 0.12.16 imports
- data.table * imports
- flexsurv * imports
- ggplot2 * imports
- msm * imports
- stats * imports
- survival * imports
- covr * suggests
- kableExtra * suggests
- knitr * suggests
- magrittr * suggests
- mstate * suggests
- nnet * suggests
- numDeriv * suggests
- pracma * suggests
- rmarkdown * suggests
- scales * suggests
- testthat * suggests
- truncnorm * suggests
[](https://cran.r-project.org/package=hesim)
[](https://app.codecov.io/gh/hesim-dev/hesim)
[](https://github.com/hesim-dev/hesim/actions/workflows/R-CMD-check.yaml)
## Overview
`hesim` is a modular and computationally efficient R package for health economic simulation modeling and decision analysis that provides a general framework for integrating statistical analyses with economic evaluation. The package supports cohort discrete time state transition models (DTSTMs), N-state partitioned survival models (PSMs), and individual-level continuous time state transition models (CTSTMs), encompassing both Markov (time-homogeneous and time-inhomogeneous) and semi-Markov processes. It heavily utilizes `Rcpp` and `data.table`, making individual-level simulation, probabilistic sensitivity analysis (PSA), and incorporation of patient heterogeneity fast.
Features of the current version can be summarized as follows:
* Cohort DTSTMs, individual-level CTSTMs, and N-state PSMs that encompass Markov and semi-Markov processes
* Options to build models directly from fitted statistical models or by defining them in terms of expressions
* Parameter estimates from either an `R` based model or from an external source
* Convenience functions for sampling model parameters from parametric distributions or via bootstrapping
* Parameter uncertainty propagated with PSA
* Modeling patient heterogeneity
* Performing cost-effectiveness analyses and representing decision uncertainty from PSAs
* Simulation code written in `C++` to boost performance
## Installation
You can install the [current release](https://hesim-dev.github.io/hesim/) from CRAN or the most up to date development version from GitHub.
```{r, eval = FALSE}
# Install from CRAN:
install.packages("hesim")
# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("hesim-dev/hesim")
```
## Getting started
There are two good places to start:
1. The [Introduction to `hesim`](https://hesim-dev.github.io/hesim/articles/intro.html) article provides a quick introduction.
2. Our [preprint](https://arxiv.org/abs/2102.09437) describes the package (including mathematical details) more thoroughly.
You might also want to explore our example analyses which can be found in the preprint and web articles. They are summarized in the table below, with some drawn from the [Decision Modeling for Health Economic Evaluation](https://www.herc.ox.ac.uk/downloads/decision-modelling-for-health-economic-evaluation) textbook. Key areas of focus are the (i) statistical models of disease progression (in terms of the baseline risk and relative treatment effects) and (ii) the available data (either individual patient data (IPD) or aggregate-level data).
```{r echo = FALSE, message = FALSE, warning = FALSE}
library("knitr")
library("kableExtra")
level <- c("Cohort", "Cohort", "Cohort", "Cohort", "Individual", "Individual", "Cohort")
links <- c(
rep("https://arxiv.org/pdf/2102.09437", 3),
"https://hesim-dev.github.io/hesim/articles/markov-cohort.html",
"https://hesim-dev.github.io/hesim/articles/markov-inhomogeneous-cohort.html",
"https://hesim-dev.github.io/hesim/articles/mlogit.html",
"https://hesim-dev.github.io/hesim/articles/markov-inhomogeneous-indiv.html",
"https://hesim-dev.github.io/hesim/articles/mstate.html",
"https://hesim-dev.github.io/hesim/articles/psm.html"
)
name <- c(
"Preprint 4.1", "Preprint 4.2", "Preprint 4.3",
"Simple Markov cohort", "Time inhomogeneous Markov (cohort)", "Multinomial logit",
"Time inhomogeneous Markov (individual)", "Semi-Markov multi-state", "4-state PSM"
)
name <- cell_spec(name, link = links)
model <- c("iCTSTM", "PSM", "cDTSTM", "cDTSTM", "cDTSTM", "cDTSTM", "iCTSTM", "iCTSTM", "PSM")
num <- 1:length(model)
application <- c(rep("Oncology", 3),"HIV", "Hip replacement", "Generic", "Hip replacement", "Generic", "Oncology")
dismod1 <- c("Multi-state model", "Survival models", "Multi-state model (panel data)",
"Multinomial", "Custom", "Multinomial logit", "Custom", "Multi-state model",
"Survival models")
dismod2 <- c("Coefficient (AFT)", "Coefficient (AFT)" , "RR",
"RR", "Coefficient (HR)", "Coefficient (OR)", "Coefficient (HR)",
"Coefficient (AFT)", "Coefficient (AFT)")
data1 <- c(rep("IPD", 3), "Aggregate", "Aggregate", "IPD", "Aggregate", "IPD", "IPD")
data2 <- c("IPD", rep("Aggregate", 2), "Aggregate", "Aggregate", "IPD", "Aggregate",
"IPD", "IPD")
tbl <- cbind(num, name, model, dismod1, data1, dismod2, data2, application)
colnames(tbl) <- c("", "Name", "Model",
rep(c("Disease model", "Disease data"), 2),
"Application")
rownames(tbl) <- 1:nrow(tbl)
kable(tbl, row.names = FALSE, escape = FALSE) %>%
kable_styling() %>%
add_header_above(c(rep("", 3), "Baseline risk" = 2, "Treatment effect" = 2, "")) %>%
column_spec(2, width = "15em") %>%
footnote(general = paste0(
"iCTSTM = Individual-level continuous time state transition model; ",
"PSM = partitioned survival model; ",
"cDTSTM = Cohort discrete time state transition model. ",
"AFT = accelerated failure time; RR = relative risk; HR = hazard ratio; OR = odds ratio. ",
"IPD = individual patient data. "),
footnote_as_chunk = TRUE)
```
## Citing hesim
If you use `hesim`, please cite as follows:
```{r, echo = FALSE, comment = ""}
citation("hesim")
```