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
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,36 @@ This simulation study was approved by the Ethical Review Board of the Faculty of
10
10
11
11
## Study Design
12
12
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
+
---
13
36
14
37
## Repository Structure
15
38
39
+
**`renv.lock`**
40
+
41
+
Contains information on the requirements of all the dependencies of R-packages used in the simulation study.
42
+
16
43
### `scripts/`
17
44
18
45
Contains all core scripts for running and analyzing the simulation study.
@@ -62,6 +89,10 @@ Each run folder contains:
62
89
*`log.txt`: Logs containing warnings and errors during simulation.
63
90
*`summary-results-bias.RDS` & `.csv`: Summary files quantifying bias in the estimates.
64
91
92
+
### **`renv/`**
93
+
94
+
Contains documents that save the settings of the `renv` environment.
95
+
65
96
## Reproducibility via `renv`
66
97
67
98
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