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.md
+40-11Lines changed: 40 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,23 +80,52 @@ Each folder includes:
80
80
81
81
Contains internal `renv` files storing the project-specific package environment.
82
82
83
-
## Reproducibility via `renv`
83
+
## Reproducing Results
84
+
85
+
1. Run `scripts/main-simulation-function-future-simul-part1.R` to simulate DGMs 2–4. Output is saved to `April10_fullsimulation/`.
86
+
2. Run `scripts/main-simulation-function-future-simul-part2.R` for DGM 1. Output is saved to `April17_fullsimulation_contxy/`.
87
+
3. Run `scripts/results-plotting.R` to process and visualize the simulation results used in the manuscript.
88
+
89
+
## Reproducibility: Step-by-Step Guide
90
+
91
+
This repository uses the [`renv`](https://rstudio.github.io/renv/) package to create a reproducible R environment. To replicate the computational setup and rerun the analyses:
92
+
93
+
### Step 1: Setup R and RStudio
94
+
95
+
1. Install **R version 4.2.2** from CRAN ([download link](https://cran.rstudio.com/bin/windows/base/old/4.2.2/R-4.2.2-win.exe))
96
+
2. Install **RStudio** (latest stable release)
97
+
98
+
### Step 2: Clone or Download the Repository
99
+
100
+
Clone the repository via GitHub or download the ZIP file and unzip it locally.
84
101
85
-
This project uses the [`renv`](https://rstudio.github.io/renv/) package to ensure a reproducible R environment. To replicate the computational setup:
102
+
### Step 3: Restore the Project Environment via `renv`
86
103
87
-
1. Install R version 4.2.2 from [CRAN](https://cran.rstudio.com/bin/windows/base/old/4.4.2/R-4.4.2-win.exe).
88
-
2. Clone or download the repository.
89
-
3. Open the project in RStudio.
90
-
4. Run:
104
+
1. Open **`Master-Thesis.Rproj`** with RStudio.
105
+
2. Run the following in the R console:
91
106
92
107
```r
93
108
renv::restore()
94
109
```
95
110
96
-
This will install all required package versions as specified in `renv.lock`.
111
+
This restores the exact package versions as specified in the `renv.lock` file, ensuring a consistent and reproducible computational environment.
97
112
98
-
##Reproducing Results
113
+
### Step 4: Run the Simulation Scripts
99
114
100
-
1. Run `scripts/main-simulation-function-future-simul-part1.R` to simulate DGMs 2–4. Output is saved to `April10_fullsimulation/`.
101
-
2. Run `scripts/main-simulation-function-future-simul-part2.R` for DGM 1. Output is saved to `April17_fullsimulation_contxy/`.
102
-
3. Run `scripts/results-plotting.R` to process and visualize the simulation results used in the manuscript.
0 commit comments