Skip to content

Commit b52c0c0

Browse files
committed
Update README
1 parent cf9e5dc commit b52c0c0

File tree

2 files changed

+143
-9
lines changed

2 files changed

+143
-9
lines changed

README.Rmd

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,64 @@ This GitHub repository provides the code of the tutorial on how to implement tim
1111

1212
- 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.
1313

14+
The release that accompanies the published article has been archived in zenodo: https://zenodo.org/record/5093594#.YPYyDy1h1qs
15+
1416
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+
1518
- [`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.
1619
- [`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.
30+
31+
## Preliminaries
32+
- Install [RStudio](https://www.rstudio.com/products/rstudio/download/)
33+
- 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+
```
1954
We recommend familiarizing with the [DARTH](http://darthworkgroup.com) coding framework described in
2055

2156
- 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
2257

2358
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.
2459

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)
67+
- [`dampack`](https://cran.r-project.org/web/packages/dampack/index.html)
68+
- [`darthtools`](https://github.com/DARTH-git/darthtools)
69+
5. Run the scripts in the analysis folder.
70+
6. Modify or adapt these scripts as needed for your project or analysis.
71+
2572
## Full list of Contributors:
2673

2774
* [Fernando Alarid-Escudero](https://github.com/feralaes)

README.md

Lines changed: 94 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,84 @@ following manuscript:
1515
Example](http://arxiv.org/abs/2001.07824). arXiv:200107824v3.
1616
2021:1-26.
1717

18+
The release that accompanies the published article has been archived in
19+
zenodo: <https://zenodo.org/record/5093594#.YPYyDy1h1qs>
20+
1821
The
1922
[`R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/tree/main/R)
2023
folder includes two different scripts corresponding to functions used to
21-
synthesize cSTMs outputs and conduct several sensitivity analyses: -
22-
[`Funtions.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions.R):
23-
Functions to generate epidemiological measures from time-dependent
24-
cSTMs. -
25-
[`Functions_cSTM_time_indep.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions_cSTM_time_indep.R):
26-
These functions wrap the time-dependent cSTM, compute CEA measures, and
27-
generate probabilistic sensitivity analysis (PSA) input datasets.
24+
synthesize cSTMs outputs and conduct several sensitivity analyses:
25+
26+
- [`Funtions.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions.R):
27+
Functions to generate epidemiological measures from time-dependent
28+
cSTMs.
29+
- [`Functions_cSTM_time_indep.R`](https://github.com/DARTH-git/cohort-modeling-tutorial-intro/blob/main/R/Functions_cSTM_time_indep.R):
30+
These functions wrap the time-dependent cSTM, compute CEA measures,
31+
and generate probabilistic sensitivity analysis (PSA) input
32+
datasets.
33+
34+
## How to cite this R code in your article
35+
36+
You can cite the R code in this repository like this “we based our
37+
analysis using the R code from Alarid-Escudero F et al. (2021)”. Here is
38+
the full bibliographic reference to include in your reference list for
39+
the manuscript and the R code (don’t forget to update the ‘last
40+
accessed’ date):
41+
42+
> Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM,
43+
> Pechlivanoglou P, Jalal H. An Introductory Tutorial on Cohort
44+
> State-Transition Models in R Using a Cost-Effectiveness Analysis
45+
> Example (<http://arxiv.org/abs/2001.07824>). arXiv:200107824v3.
46+
> 2021:1-26.
47+
48+
> Alarid-Escudero F, Krijkamp EM, Enns EA, Yang A, Hunink MGM,
49+
> Pechlivanoglou P, Jalal H (2021). R Code for An Introductory Tutorial
50+
> on Cohort State-Transition Models in R Using a Cost-Effectiveness
51+
> Analysis Example (Version v0.9.0). Zenodo.
52+
> [10.5281/zenodo.5093594](https://www.doi.org/10.5281/zenodo.5093594).
53+
> Last accessed 19 August 2021.
54+
55+
If you adapted the code, you should indicate “Adapted from:” or “Based
56+
on” so it is understood that you modified the code. For more information
57+
on how to cite computer code, we refer the user to review [Writing Code
58+
(from MIT Research
59+
Guide)](https://integrity.mit.edu/handbook/writing-code), which provides
60+
examples of how and when to cite computer code.
61+
62+
## Preliminaries
63+
64+
- Install
65+
[RStudio](https://www.rstudio.com/products/rstudio/download/)
66+
- Install
67+
[`dampack`](https://cran.r-project.org/web/packages/dampack/index.html)
68+
R package from CRAN
69+
70+
``` r
71+
# Install release version from CRAN
72+
install.packages("dampack")
73+
74+
# Or install development version from GitHub
75+
# devtools::install_github("DARTH-git/dampack")
76+
```
77+
78+
- Install `devtools` to install
79+
[`darthtools`](https://github.com/DARTH-git/darthtools) R package
80+
from [DARTH’s GitHub](https://github.com/DARTH-git)
81+
82+
``` r
83+
# Install release version from CRAN
84+
install.packages("devtools")
85+
86+
# Or install development version from GitHub
87+
# devtools::install_github("r-lib/devtools")
88+
```
89+
90+
- Install `darthtools` using `devtools`
91+
92+
``` r
93+
# Install development version from GitHub
94+
devtools::install_github("DARTH-git/darthtools")
95+
```
2896

2997
We recommend familiarizing with the [DARTH](http://darthworkgroup.com)
3098
coding framework described in
@@ -41,6 +109,25 @@ Package](https://cran.r-project.org/web/packages/dampack/index.html), an
41109
R package for analyzing and visualizing the health economic outputs of
42110
decision models.
43111

112+
## Use repository as a regular coding template
113+
114+
1. On the [tutorial’s GitHub
115+
repository](https://github.com/DARTH-git/cohort-modeling-tutorial-intro),
116+
navigate to the main page of the repository
117+
(<https://github.com/DARTH-git/cohort-modeling-tutorial-intro>).
118+
2. Above the file list, click **Clone or download** and select either
119+
1. **Open in desktop**, which requires the user to have a GitHub
120+
desktop installed, or
121+
2. **Download zip** that will ask the user to download the whole
122+
repository as a .zip file.
123+
3. Open the RStudio project `cohort-modeling-tutorial-intro.Rproj`.
124+
4. Install all the required packages (as mentioned above)
125+
- [`dampack`](https://cran.r-project.org/web/packages/dampack/index.html)
126+
- [`darthtools`](https://github.com/DARTH-git/darthtools)
127+
5. Run the scripts in the analysis folder.
128+
6. Modify or adapt these scripts as needed for your project or
129+
analysis.
130+
44131
## Full list of Contributors:
45132

46133
- [Fernando Alarid-Escudero](https://github.com/feralaes)

0 commit comments

Comments
 (0)