Hi, I am trying to analyze longitudinal data using mediation model. The unit of observation is province. There are 34 provinces. The data runs for 30 years. I have one dependent variable, two mediation variables, and one independent variable, along with some covariables. I want to run a partial mediation analysis, so that the impact of my independent variable on the dependent variable tends to be reduced through the mediation variables. I am using STATA13. I understand that "gsem" is the command language. But I am not clear whether I simply should treat year as the second level, province as the first level. Viewed in this way, the data is two level. But I feel somewhat uncomforable because two level usually refers to clustered data, such as pupils are clustered among schools. So I wonder if there is anything more specfic to deal with the time dimension in longitudinal data as in my case for mediation models. Your advice would be highly appreciated. Thank you very much.

Comment