Homework 07 - due 11/29/2017
Repeated Measures ANOVA and Multilevel (MIXED) Linear Models
For Homework 07, you will be using the HELP dataset, learn more at:
Refer to the repeated measures ANOVA and MLM lessons 21, 22 and 23. See
For the HELP dataset:
- OUTCOME VARIABLE: consider the 5 measurements of depressive symptoms (CESD) at baseline, 6m, 12m, 18m and 24m. Use variables
cesd
, cesd1
, cesd2
, cesd3
, cesd4
- BETWEEN GROUP VARIABLE: Also consider the treatment group variable
treat
- FYI: You will also need the
id
to
- properly restructure the data from WIDE to LONG format; and
- treat subjects as a random effect for the random intercepts approach to MLM
For Homework 7, complete the following:
- Perform a repeated measures analysis of variance (RM-ANOVA) for the 5 CESD measurements across time by treatment group.
- treat time as a continuous variable (not as a factor) - this is your WITHIN group effect
- treat the treatment group
treat
as a factor - this is your BETWEEN group effect
- TABLE: present the table of the intercept, time, treat and time*treat interaction effects including the tests of significance. [Remember this significance might change depending on the treatment group coding - try flipping the 0 and 1 and run the model again to see if the significance changes]
- FIGURE: make a plot of the CESD means across time by group - if you can make it an error bar plot which has the means and CI’s (confidence intervals) or SE’s (standard errors)
- Repeate the “repeated measures/longitudinal” analysis using a random intercepts MLM model
- REMEMBER to restructure the data from WIDE to LONG format
- TABLE: present the table of the intercept, time, treat and time*treat interaction effects including the tests of significance. [Remember this significance might change depending on the treatment group coding - try flipping the 0 and 1 and run the model again to see if the significance changes]
- Compare the results between the 2 approaches
- compare the sample size differences
- why do you think the results are different or are similar?
Variables in HELP dataset to be used for Homework 07:
Use these variables from HELP dataset for Homework 07
id |
Subject ID |
treat |
Randomization Group |
cesd |
CESD total score - Baseline |
cesd1 |
CESD total score - 6mo |
cesd2 |
CESD total score - 12mo |
cesd3 |
CESD total score - 18mo |
cesd4 |
CESD total score - 24mo |
Copyright © Melinda Higgins, Ph.D.. All contents under (CC) BY-NC-SA license,
unless otherwise noted.
Feedback, Comments (email me)?