Hi Guys! I was wondering how to create a residual structure using the mixed command in a multivariate (I have 3 outcome variables, a time variable, and one time-variant covariate) three-level model. In a univariate model i simply right the description: residuals(ar 1, t(res)). The problem is how to create the variable res in t() when i have already a long format datastructure, in order stata to be able to estimate the multivariate model. In my case, I have three outcome variables with 17 obs per variable. I create the res var, as a counter var going until 17 and then staring over again, but when i try to estimate the model, stata writes "repeated time values within lowest-level panels". Then I created the same counter variable to go until 51 (17X3 outcome variables), and it estimated the model, but I am afraid this is not correct. since there is no time autocorrelation when i jump to the first observation of the second var and so on for the third outcome var. I dont know if i explain it clearly, if anyone knows pls send a replay, Thanks!
-
Login or Register
- Log in with
Comment