This document clarifies what a “marginal model” means in the context of hierarchical (mixed) models, with special attention to spatio-temporal random effects. We distinguish between:
Marginalizing (integrating out) random effects from a hierarchical specification.
Marginal models as population-averaged models (Generalized Estimating Equations, GEE).
We start with a hierarchical specification:
Data Level :
\[ Y_t \mid w_t \sim N(\mu_t, \sigma^2 I) \tag{1} \]
Process Level:
\[ w_t \sim N(0, \sigma_w^2 S_w) \tag{2} \]
where \(S_w\) is a spatio-temporal correlation matrix.
To obtain the marginal model for \(Y_t\), we integrate out the random effects \(w_t\):
\[ \begin{aligned} \text{Var}(Y_t) &= \text{Var}(E[Y_t \mid w_t]) + E[\text{Var}(Y_t \mid w_t)] \\ &= \text{Var}(\mu_t + w_t) + E[\sigma^2 I] \\ &= \sigma_w^2 S_w + \sigma^2 I \end{aligned} \]
\[ Y_t \sim N(\mu_t, \sigma^2 I + \sigma_w^2 S_w) \]
So, the spatio-temporal random effect \(w_t\) has been integrated out.
The marginal covariance now has two parts:
The term “marginal model” can mean different things depending on context.
This is common in hierarchical or linear mixed models (LMMs).
lme4, brms,
INLA, spTimerExample (Non-spatial, longitudinal):
Conditional: \[ Y_{ij} \mid b_i \sim N(\mu + b_i, \sigma^2), \quad b_i \sim N(0, \tau^2) \]
Marginal: \[ Y_{ij} \sim N(\mu, \sigma^2 + \tau^2) \] with compound symmetry covariance.
From Generalized Estimating Equations (Liang & Zeger, 1986).
| Feature | Your LMM Marginal | GEE (Population-Averaged) |
|---|---|---|
| Random effects integrated out? | Yes | N/A (none exist) |
| Interpretation of \(\beta\) | Same as conditional for linear models | Strictly population-average |
| Likelihood-based? | Yes (REML/ML) | No (quasi-likelihood) |
| Handles missing data? | Requires MAR + correct likelihood | Requires MAR + robust |
The conditional and marginal means are identical:
\[ E[Y] = X\beta \quad \text{(both)} \]
Only the covariance structure differs.
This is NOT true. Example with logistic GLMM:
Conditional: \[ \text{logit}(E[Y_{ij} \mid b_i]) = X\beta + b_i \]
Marginal (integrated): \[ E[Y_{ij}] = \int \text{logit}^{-1}(X\beta + b) \, p(b) \, db \neq \text{logit}^{-1}(X\beta) \]
🔴 Marginal effect sizes are attenuated toward zero compared to conditional effects. This is a well-known phenomenon in non-linear mixed models.
| Question | Answer |
|---|---|
| In spatio-temporal LMM, does “marginal model” mean random effects are integrated out? | Yes — \(Y_t \sim N(\mu_t, \sigma^2 I + \sigma_w^2 S_w)\) results from integrating out \(w_t\) |
| Does “marginal model” always mean that? | No — GEEs have no random effects to integrate out |
| For non-Gaussian data, does integration change only covariance? | No — the mean structure also changes (attenuation) |
The equations (1)-(2) represent a classic LMM marginal model (Type A).