How would I specify a model for a random intercept and slope growth model of time-series data, where I expect there to be autocorrelation?
For example I have 100 participants who completed daily measures of stress over 3 weeks during a potentially stress inducing period. But I expect some autocorrelation between daily measures. I want to be able to extract the factor scores for use in later analyses.
Thanks Bengt, appreciate these responses. I have watched all the DSEM videos on the site - which have been a great help - but as a beginner I think I sometimes miss the obvious! I will keep my eye out for the JHopkins talks.
So based on the smoking urge example I tried the following:
USEVARIABLES ARE ID PA Pregnant Yrs_Inf AGE Attempts time; WITHIN = time; BETWEEN = Yrs_Inf AGE Attempts Pregnant; CATEGORICAL = Pregnant; CLUSTER = ID; LAGGED = PA(1);