Skip to content

Commit bf9de33

Browse files
authored
Update README.md
1 parent f591ea2 commit bf9de33

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,36 @@ This simulation study was approved by the Ethical Review Board of the Faculty of
1010

1111
## Study Design
1212

13+
This simulation study evaluates the generalizability of disaggregation methods—commonly applied in multilevel linear models (MLMs)—to *generalized* multilevel models (GLMMs) and *generalized estimating equations* (GEEs) when dealing with binary predictors and/or binary outcomes.
14+
15+
We address two primary questions:
16+
17+
1. Can disaggregation methods (UC, CWC, MuCo) reliably recover within-person and contextual effects in GLMMs with binary predictors and/or outcomes?
18+
2. Do GEEs require explicit disaggregation to correctly estimate within-person effects, especially when contextual effects are present?
19+
20+
We simulate data across four data-generating models (DGMs) that vary in the scale of the predictor and outcome variables (continuous or binary). Across DGMs, we keep constant the within-cluser standard deviation (SD) of the continuous predictor, the fixed intercept, the within-cluster effect and the level 1 residual SD (for DGMs with continuous outcome). For each of these DGMs, we systematically vary:
21+
22+
CREATE MARKDOWN TABLE
23+
24+
* Sample size *(N = 100, 200)*
25+
* Number of time points *(T = 5, 10, 20)*
26+
* Between-cluster SD in continuous predictor (0, 1, 3)
27+
* SD in Z (the latent trait underlying between-person variability in binary X): (0, 1, 3)
28+
* Contextual effect: (0, 1, 3)
29+
* Random intercept residual SD: (1, 3)
30+
31+
Each dataset is analyzed using 12 strategies: combinations of 3 disaggregation methods (uncentered, centering-within-clusters and mundlak's contextual model) and 4 estimation approaches (GLMM, and GEE with independence, exchangeable, and AR(1) correlation structures).
32+
33+
Model performance is assessed via estimation bias in fixed effects (within-person: β₁; contextual: γ₀₁).
34+
35+
---
1336

1437
## Repository Structure
1538

39+
**`renv.lock`**
40+
41+
Contains information on the requirements of all the dependencies of R-packages used in the simulation study.
42+
1643
### `scripts/`
1744

1845
Contains all core scripts for running and analyzing the simulation study.
@@ -62,6 +89,10 @@ Each run folder contains:
6289
* `log.txt`: Logs containing warnings and errors during simulation.
6390
* `summary-results-bias.RDS` & `.csv`: Summary files quantifying bias in the estimates.
6491

92+
### **`renv/`**
93+
94+
Contains documents that save the settings of the `renv` environment.
95+
6596
## Reproducibility via `renv`
6697

6798
This repository uses the [`renv`](https://rstudio.github.io/renv/) package to create a reproducible R environment. To replicate the computational setup:

0 commit comments

Comments
 (0)