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

Random-effects Parameters Estimate Std. Err. [95% Conf. Interval]<br />

mare: Identity<br />

Residual: AR(2)<br />

var(_cons) 7.092439 4.401937 2.101337 23.93843<br />

phi1 .5386104 .0624899 .4161325 .6610883<br />

phi2 .144671 .0632041 .0207933 .2685488<br />

var(e) 14.25104 2.435238 10.19512 19.92054<br />

LR test vs. linear regression: chi2(3) = 251.67 Prob > chi2 = 0.0000<br />

Note: LR test is conservative and provided only for reference.<br />

We picked an order of 2 as a guess, but we could have used LR tests of competing AR models to<br />

determine the optimal order, because models of smaller order are nested within those of larger order.<br />

Example 9<br />

Fitzmaurice, Laird, and Ware (2011, chap. 7) analyzed data on 37 subjects who participated in an<br />

exercise therapy trial.<br />

. use http://www.stata-press.com/data/r13/exercise<br />

(Exercise Therapy Trial)<br />

. describe<br />

Contains data from http://www.stata-press.com/data/r13/exercise.dta<br />

obs: 259 Exercise Therapy Trial<br />

vars: 4 24 Jun 2012 18:35<br />

size: 1,036 (_dta has notes)<br />

storage display value<br />

variable name type format label variable label<br />

id byte %9.0g Person ID<br />

day byte %9.0g Day of measurement<br />

program byte %9.0g 1 = reps increase; 2 = weights<br />

increase<br />

strength byte %9.0g Strength measurement<br />

Sorted by: id day<br />

Subjects (variable id) were placed on either an increased-repetition regimen (program==1) or a program<br />

that kept the repetitions constant but increased weight (program==2). Muscle-strength measurements<br />

(variable strength) were taken at baseline (day==0) and then every two days over the next twelve<br />

days.<br />

Following Fitzmaurice, Laird, and Ware (2011, chap. 7), and to demonstrate fitting residual-error<br />

structures to data collected at uneven time points, we confine our analysis to those data collected at<br />

baseline and at days 4, 6, 8, and 12. We fit a full two-way factorial model of strength on program<br />

and day, with an unstructured residual-error covariance matrix over those repeated measurements<br />

taken on the same subject:

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

Saved successfully!

Ooh no, something went wrong!