29.07.2014 Views

mixed - Stata

mixed - Stata

mixed - Stata

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>mixed</strong> — Multilevel <strong>mixed</strong>-effects linear regression 47<br />

Obtaining a joint variance–covariance matrix for the estimated {α, log(σ ɛ )} requires the evaluation<br />

of the log likelihood (or log-restricted likelihood) with only β profiled out. For ML, we have<br />

L ∗ {α, log(σ ɛ )} = L{∆(α, σɛ 2 ), σɛ 2 }<br />

= − n 2 log(2πσ2 ɛ ) − ||c 1|| 2 M∑<br />

+ log<br />

det(∆)<br />

∣det(R 11j ) ∣<br />

with the analogous expression for REML.<br />

The variance–covariance matrix of ̂β is estimated as<br />

̂Var(̂β) = ̂σ<br />

2<br />

ɛ R −1<br />

00<br />

2σ 2 ɛ<br />

( )<br />

R<br />

−1 ′<br />

00<br />

but this does not mean that ̂Var(̂β) is identical under both ML and REML because R00 depends on<br />

∆. Because ̂β is asymptotically uncorrelated with {̂α, log(̂σɛ )}, the covariance of ̂β with the other<br />

estimated parameters is treated as 0.<br />

Parameter estimates are stored in e(b) as {̂β, ̂α, log(̂σɛ )}, with the corresponding (block-diagonal)<br />

variance–covariance matrix stored in e(V). Parameter estimates can be displayed in this metric by<br />

specifying the estmetric option. However, in <strong>mixed</strong> output, variance components are most often<br />

displayed either as variances and covariances or as standard deviations and correlations.<br />

EM iterations are derived by considering the u j in (2) as missing data. Here we describe the<br />

procedure for maximizing the log likelihood via EM; the procedure for maximizing the restricted log<br />

likelihood is similar. The log likelihood for the full data (y, u) is<br />

L F (β, Σ, σ 2 ɛ ) =<br />

j=1<br />

M∑ {<br />

log f1 (y j |u j , β, σɛ 2 ) + log f 2 (u j |Σ) }<br />

j=1<br />

where f 1 (·) is the density function for multivariate normal with mean X j β + Z j u j and variance<br />

σɛ 2 I nj , and f 2 (·) is the density for multivariate normal with mean 0 and q × q covariance matrix<br />

Σ. As before, we can profile β and σɛ 2 out of the optimization, yielding the following EM iterative<br />

procedure:<br />

1. For the current iterated value of Σ (t) , fix ̂β = ̂β(Σ (t) ) and ̂σ 2 ɛ = ̂σ 2 ɛ (Σ (t) ) according to (12).<br />

2. Expectation step: Calculate<br />

{<br />

}<br />

D(Σ) ≡ E L F (̂β, Σ, ̂σ<br />

2<br />

ɛ )|y<br />

= C − M 2 log det (Σ) − 1 2<br />

M∑<br />

E ( u ′ j Σ−1 u j |y )<br />

where C is a constant that does not depend on Σ, and the expected value of the quadratic form<br />

u ′ j Σ−1 u j is taken with respect to the conditional density f(u j |y, ̂β, Σ (t) , ̂σ 2 ɛ ).<br />

3. Maximization step: Maximize D(Σ) to produce Σ (t+1) .<br />

j=1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!