I am trying to teach myself SEM and I cannot work out the syntax for the following.

I have a longitudinal dataset where each patient (pid) gives an opinion (q) at each of three times (t) and I want to use multinomial logistic regression for the analysis. I can model the effect of time:

gsem (q<- i.t), mlogit

but how do I allow for the fact that the data is repeated on patient?


I have ordered a copy of Discovering Structural Equation Modeling Using Stata, Revised Edition, by Alan Acock but as it has not arrived yet I would be grateful for some advice.

Thanks,
Janet