mixed - Stata
mixed - Stata
mixed - Stata
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>mixed</strong> — Multilevel <strong>mixed</strong>-effects linear regression 37<br />
where y jk represents the logarithms of gross state products for the n jk = 17 observations from state<br />
j in region k, X jk is a set of regressors, u (3)<br />
k<br />
is a random intercept at the region level, and u (2)<br />
jk<br />
is<br />
a random intercept at the state (nested within region) level. We assume that u (3)<br />
k<br />
∼ N(0, σ3) 2 and<br />
u (2)<br />
jk<br />
∼ N(0, σ2 2) independently. Define<br />
⎡<br />
v k = ⎢<br />
⎣<br />
u (3)<br />
k<br />
+ u (2)<br />
1k<br />
u (3)<br />
k<br />
+ u (2)<br />
2k<br />
.<br />
.<br />
u (3)<br />
k<br />
+ u (2)<br />
M k ,k<br />
where M k is the number of states in region k. Making this substitution, we can stack the observations<br />
for all the states within region k to get<br />
⎤<br />
⎥<br />
⎦<br />
y k = X k β + Z k v k + ɛ k<br />
where Z k is a set of indicators identifying the states within each region; that is,<br />
for a k-column vector of 1s J k , and<br />
Z k = I Mk ⊗ J 17<br />
⎡<br />
σ3 2 + σ2 2 σ3 2 · · · σ 2 ⎤<br />
3<br />
σ3 2 σ3 2 + σ2 2 · · · σ3<br />
2 Σ = Var(v k ) = ⎢<br />
⎣<br />
.<br />
.<br />
. ..<br />
. ⎥ .. ⎦<br />
σ3 2 σ3 2 σ3 2 σ3 2 + σ2<br />
2<br />
M k ×M k<br />
Because Σ is an exchangeable matrix, we can fit this alternative form of the model by specifying the<br />
exchangeable covariance structure.