Week 10: Longitudinal II
Models for Longitudinal Data II
Week Learning Objectives
By the end of this module, you will be able to
- Specify models with alternative error covariance structures
- Describe the difference between analyzing trends vs. analyzing fluctuations with longitudinal data
- Run analyses with time-varying predictors (i.e., level-1 predictors)
- Interpret and plot results
Task List
- Review the resources (lecture videos and slides)
- Complete the assigned readings
- Hoffman (2014) ch 4.1 (USC SSO required)
- Hoffman (2014) ch 8 (USC SSO required)
- Attend the Tuesday session to learn about
brms
- Attend the Thursday session and participate in the class exercise
- Complete Homework 8
- (Optional) Read the bonus R code on the generalized estimating equations (GEE) method
- Additional reference: https://journals.sagepub.com/doi/abs/10.3102/10769986211017480
Lecture
Slides
In the videos for this week, you will see that I used the R package glmmTMB
for frequentist analyses for fitting models with autoregressive covariance structures. These are useful for getting quick results, but they may sometimes run into convergence issues. Using brms
is generally more stable.
Covariance Structure in MLM
OLS and RI-MLM/RM-ANOVA
Random Slopes
Autoregressive(1) error structure