Now I have longitudinal data (two waves), all exposures and outcomes were measured at time 1 and time 2. I primarily want to test the temporal relationship between exposures and outcomes, and then test the mediation effects using the third variables which were also measured at both times.
I know that there are GEE, multilevel model, and SEM can be used to analyze longitudinal data.
But how to use these methods to test the mediation effects?
Thanks.