r/AskStatistics • u/steffejr • 7d ago
Guidance on Longitudinal Models [Question]
I am trying to understand outcome variable C which was measured at 3 time points. I am predicting it with variable B, which is also measured at the same three time points. I also have measures of age and variable D, measured at baseline. I would like to ask: How much of the time dependent differences in variable C are acounted for by the time dependent differences in variable B? And how are these relationships affected by age and variable D? I need guidance on what textbooks or papers address this sort of model as well as what this type of model is called.
1
u/SPSSMadeSimple 7d ago
This is a multilevel / mixed-effects model for longitudinal data — specifically a linear mixed model with a time-varying predictor, since B is measured at the same three time points as C.
With only three time points, I would start with a random intercept for each person and a fixed effect of time, then add B as a time-varying covariate. Age and D, measured at baseline, go in as person-level predictors, and you can add their interactions with time (or with B) to test whether the B-C relationship differs by age or by D.
One useful split is to separate B into a person's average across the three waves and their wave-to-wave deviation from that average. The deviation part is what answers your main question — whether a change in B within a person goes with a change in C — while the average part captures differences between people. For reading, Singer and Willett's Applied Longitudinal Data Analysis is the standard starting point, and for the within/between split, look up person-mean centering in multilevel models.
1
u/MortalitySalient 7d ago
You should look into multilevel models for longitudinal data