| Statistics 732 | Spring 2006 |
| Applied Longitudinal Data Analysis | |
Homework Assignments
Some assignments are from Fitzmaurice, Laird, and Ware; others are given in detail below.
| Number | Due date | Assignment |
|---|---|---|
| 1 | Thursday, January 19 | Problem 2.1 |
| 2 | Thursday, January 26 | Univariate ANOVA of TLC data |
| 3 | Tuesday, February 14 | Problem 5.1 |
| 4 | Tuesday, February 21 | Problem 6.1 |
| 5 | Thursday, March 16 | Problem 7.1 |
| 6 | Thursday, March 23 | Problem 8.2 |
| 7 | Thursday, March 30 | Problem 9.1 |
| 8 | Tuesday, April 25 | Problem 12.1 |
| 9 | No due date | Problem 12.2 |
Problem 2.1 is essentially this: retrieve the file lead.txt (data for the succimer group) from the authors' website, and:
Univariate ANOVA of the TLC data can be carried out as follows: retrieve the file tlc.txt (data for the whole study) from the authors' website, and:
data tlc_uni; /* Convert the data from multivariate form (one record per subject, with * 4 responses), to univariate form (one record per response, with a new * variable 'week' to identify the occasion. */ set tlc; drop y0 -- y6; week = 0; y = y0; output; week = 1; y = y1; output; week = 4; y = y4; output; week = 6; y = y6; output; run;
proc glm to fit a model with factors:
child within treatmentdeclared to be a random effect.
treatment) is not.test statement to get an appropriate
test for treatment.Problem 5.1 is essentially this: retrieve the file cholesterol.txt (data for a gallstone study) from the authors' website, and:
proc mixed to do
much of the work. Use the SAS listing of the estimated
fixed effects to see the role of each component of the
parameter vector, and then use those roles to construct a
contrast statement to test the hypothesis of
interest. If you exercise the E option of the
contrast statement, SAS will print out the
coefficients of the corresponding L matrix (transposed).
See the online help to find out why SAS puts some
coefficients on interactions when you specify a row with
coefficients on main effects but not on the corresponding
interactions.