Skip to content

Commit e141738

Browse files
committed
2 parents 0260c2a + de7beab commit e141738

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# From Multilevel Modeling to GEE: Revisiting the Within- and Between-Person Debate with Binary Predictors and Outcomes
2+
3+
This repository contains all materials associated with the manuscript:
4+
**"From Multilevel Modeling to GEE: Revisiting the Within- and Between-Person Debate with Binary Predictors and Outcomes"**
5+
It includes code, supplementary documentation, and simulation results to ensure full transparency and reproducibility of the study.
6+
7+
## Repository Structure
8+
9+
### `scripts/`
10+
11+
Contains all core scripts for running and analyzing the simulation study.
12+
13+
* **`main-simulation-function-future-simul.R`**
14+
Modularized main script that executes the simulation across various design conditions.
15+
16+
* **`results-plotting.R`**
17+
Scripts used to produce the plots featured in the Results section of the manuscript.
18+
19+
* **`helper-functions/`** (subfolder with modular components):
20+
21+
* `data-generation-centeredX.R`: Data-generating mechanisms based on the hybrid model.
22+
* `data-generation-mundlak.R`: Data-generating mechanisms based on Mundlak’s contextual model (the model used in the main manuscript).
23+
* `model-fitting.R`: Model-fitting procedures for both GLMMs and GEEs.
24+
* `result-formatting.R`: Functions to clean and format simulation output.
25+
26+
### `data_exploration/`
27+
28+
Contains interactive and rendered documents to explore the simulation designs.
29+
30+
* **`data-exploration.qmd`**: Allows users to explore all four data-generating mechanisms (DGMs) considered in the study.
31+
* **`data-exploration.html`**: Rendered HTML version for direct inspection.
32+
33+
### `supplementary_materials/`
34+
35+
Supplementary materials accompanying the manuscript.
36+
37+
* **`supplementary_materials.qmd`**: Quarto document with:
38+
39+
1. A comparison between the hybrid and Mundlak's contextual model.
40+
2. Discussion of boundary/extreme estimates in GEEs and how they were handled.
41+
* **`supplementary_materials.html`**: Rendered HTML version for direct inspection.
42+
43+
### `simulation_results/`
44+
45+
Contains raw and processed simulation outputs, organized into subfolders corresponding to different simulation runs:
46+
47+
* **`April10_fullsimulation/`**: Part 1, covering DGMs 2–4.
48+
* **`April17_fullsimulation_contxy/`**: Part 2, covering DGM 1.
49+
* **`April18_fullsimulation_combined/figures/`**: Final figures used in the manuscript.
50+
51+
Each run folder contains:
52+
53+
* `i.RDS`: Raw output for each design/scenario `i`.
54+
* `settings.RDS`: Simulation settings used for that batch.
55+
* `log.txt`: Logs containing warnings and errors during simulation.
56+
* `summary-results-bias.RDS` & `.csv`: Summary files quantifying bias in the estimates.
57+
58+
---

0 commit comments

Comments
 (0)