Imagine a dataset where there are 3 nested grouping variables: study $>$ group $>$ outcome (read outcome is nested in group which in turn is nested in study.)
We have two predictors. ktype is a categorical factor (0=direct,1=indirect) that can vary between studys, between groups, and between outcomes. And, treat is a continuous variable only varying between studys.
Question: If I fit 3 models (see below) that only differ in their random-effects specification, then, how does the interpretation or meaning of any of the 3 fixed-effect coefficients (A, B, C) for each model change?
Estimate
ktype0 A
ktype1 B
treat C
# Syntax in R's `lme4` package (DON'T RUN)
1) lmer(y ~ 0 + ktype + treat + (ktype |study))
lmer(y ~ 0 + ktype + treat + (ktype |study) + (treat |study))
lmer(y ~ 0 + ktype + treat + (ktype |study/group/outcome) + (treat |study))
STRUCTURE OF GROUPING VARIABLES:
"
study group outcome
1 1 1
1 1 2
1 1 1
1 1 2
1 1 1
1 1 2
1 2 1
1 2 2
1 2 1
1 2 2
1 2 1
1 2 2
2 1 1
2 1 2
2 2 1
2 2 2"
```
A, B, C) might differ across the 3 models I showed in my question. For example, what is the difference in the interpretation/meaning oftreatin model 1 vs. model 2 vs. model 3. And what is the difference in the interpretation/meaning ofktype0inmodel 1vs.model 2vs.model 3. My own understanding is that the interpretation/meaning oftreatin . . . – rnorouzian Aug 12 '21 at 15:05model 1is: change inyfor each unit of increase intreatwhenktype == 0. However, I wonder how this interpretation (or meaning oftreatas a fixed-effect coefficient) changes whentreatis itself taken as random-effect as inmodel 2ormodel 3? The same question applies toktype. Given that inmodel 1,ktypeis only taken as random at thestudylevel, and then inmodel 3taken to be random at thestudy,group, andoutcomelevels, I wonder how this interpretation (or meaning ofktype0as a fixed-effect coefficient) changes whenktype0used in . . . – rnorouzian Aug 12 '21 at 15:06model 1vs. inmodel 3? – rnorouzian Aug 12 '21 at 15:06ktype0andktype1inmodel 3to vary across,group,outcome, andstudylevels, won't the fixed effect of these two coefficients be each a coefficient that has been averaged across these three levels? By contrast, wouldn'tktype0andktype1inmodel 1that are only allowed to vary acrossstudyeach represent a coefficient that has been averaged acrossstudylevels? – rnorouzian Aug 12 '21 at 15:17Y ~ X + Y + (1 | site) + (X | site:subject)and then see what happens when the wrong the random structure is specified (with different data structures) – Robert Long Aug 12 '21 at 15:43treatin mymodel 2should be different frommodel 1. – rnorouzian Aug 12 '21 at 15:55