You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+49-2Lines changed: 49 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,64 @@ This GitHub repository provides the code of the tutorial on how to implement tim
11
11
12
12
- 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](http://arxiv.org/abs/2001.07824). arXiv:200107824v3. 2021:1-26.
13
13
14
+
The release that accompanies the published article has been archived in zenodo: https://zenodo.org/record/5093594#.YPYyDy1h1qs
15
+
14
16
The [`R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/tree/main/R) folder includes two different scripts corresponding to functions used to synthesize cSTMs outputs and conduct several sensitivity analyses:
17
+
15
18
-[`Funtions.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions.R): Functions to generate epidemiological measures from time-dependent cSTMs.
16
19
-[`Functions_cSTM_time_indep.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions_cSTM_time_indep.R): These functions wrap the time-dependent cSTM, compute CEA measures, and generate probabilistic sensitivity analysis (PSA) input datasets.
17
-
18
-
20
+
21
+
## How to cite this R code in your article
22
+
23
+
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. (2021)". 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):
24
+
25
+
> 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 (http://arxiv.org/abs/2001.07824). arXiv:200107824v3. 2021:1-26.
26
+
27
+
> Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM, Pechlivanoglou P, Jalal H (2021). R Code for An Introductory Tutorial on Cohort State-Transition Models in R Using a Cost-Effectiveness Analysis Example (Version v0.9.0). Zenodo. [10.5281/zenodo.5093594](https://www.doi.org/10.5281/zenodo.5093594). Last accessed 19 August 2021.
28
+
29
+
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)](https://integrity.mit.edu/handbook/writing-code), which provides examples of how and when to cite computer code.
- Install [`dampack`](https://cran.r-project.org/web/packages/dampack/index.html) R package from CRAN
34
+
```{r, eval=FALSE}
35
+
# Install release version from CRAN
36
+
install.packages("dampack")
37
+
38
+
# Or install development version from GitHub
39
+
# devtools::install_github("DARTH-git/dampack")
40
+
```
41
+
- Install `devtools` to install [`darthtools`](https://github.com/DARTH-git/darthtools) R package from [DARTH's GitHub](https://github.com/DARTH-git)
42
+
```{r, eval=FALSE}
43
+
# Install release version from CRAN
44
+
install.packages("devtools")
45
+
46
+
# Or install development version from GitHub
47
+
# devtools::install_github("r-lib/devtools")
48
+
```
49
+
- Install `darthtools` using `devtools`
50
+
```{r, eval=FALSE}
51
+
# Install development version from GitHub
52
+
devtools::install_github("DARTH-git/darthtools")
53
+
```
19
54
We recommend familiarizing with the [DARTH](http://darthworkgroup.com) coding framework described in
20
55
21
56
- Alarid-Escudero F, Krijkamp EM, Pechlivanoglou P, Jalal HJ, Kao SYZ, Yang A, Enns EA. [A Need for Change! A Coding Framework for Improving Transparency in Decision Modeling](https://link.springer.com/article/10.1007/s40273-019-00837-x). [PharmacoEconomics](https://www.springer.com/journal/40273), 2190;37(11):1329–1339. https://doi.org/10.1007/s40273-019-00837-x
22
57
23
58
To run the CEA, you require [`dampack`: Decision-Analytic Modeling Package](https://cran.r-project.org/web/packages/dampack/index.html), an R package for analyzing and visualizing the health economic outputs of decision models.
24
59
60
+
## Use repository as a regular coding template
61
+
1. On the [tutorial's GitHub repository](https://github.com/DARTH-git/cohort-modeling-tutorial-intro), navigate to the main page of the repository (https://github.com/DARTH-git/cohort-modeling-tutorial-intro).
62
+
2. Above the file list, click **Clone or download** and select either
63
+
a. **Open in desktop**, which requires the user to have a GitHub desktop installed, or
64
+
b. **Download zip** that will ask the user to download the whole repository as a .zip file.
65
+
3. Open the RStudio project `cohort-modeling-tutorial-intro.Rproj`.
66
+
4. Install all the required packages (as mentioned above)
0 commit comments