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 13<br />

Because we did not specify a covariance structure for the random effects (u 0j , u 1j ) ′ , <strong>mixed</strong> used<br />

the default Independent structure; that is,<br />

[ ] [ ]<br />

u0j σ<br />

2<br />

Σ = Var = u0 0<br />

u 1j 0 σu1<br />

2<br />

with ̂σ u0 2 = 6.76 and ̂σ u1 2 = 0.37. Our point estimates of the fixed effects are essentially identical to<br />

those from model (4), but note that this does not hold generally. Given the 95% confidence interval<br />

for ̂σ u1 2 , it would seem that the random slope is significant, and we can use lrtest and our two<br />

stored estimation results to verify this fact:<br />

. lrtest randslope randint<br />

Likelihood-ratio test LR chi2(1) = 291.78<br />

(Assumption: randint nested in randslope) Prob > chi2 = 0.0000<br />

Note: The reported degrees of freedom assumes the null hypothesis is not on<br />

the boundary of the parameter space. If this is not true, then the<br />

reported test is conservative.<br />

The near-zero significance level favors the model that allows for a random pig-specific regression<br />

line over the model that allows only for a pig-specific shift.<br />

(6)<br />

Covariance structures<br />

In example 2, we fit a model with the default Independent covariance given in (6). Within any<br />

random-effects level specification, we can override this default by specifying an alternative covariance<br />

structure via the covariance() option.<br />

Example 3<br />

We generalize (6) to allow u 0j and u 1j to be correlated; that is,<br />

[ ] [ ]<br />

u0j σ<br />

2<br />

Σ = Var = u0 σ 01<br />

u 1j σ 01 σu1<br />

2

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

Saved successfully!

Ooh no, something went wrong!