Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: xtmixed

From   "Sun, Wensheng" <>
To   "" <>
Subject   st: xtmixed
Date   Thu, 3 Jan 2013 17:10:15 -0600

Dear statalist,
Please help.
xtmixed depvar time(indepvar1) i.treatment(indepvar2) timextreatment(interaction), ||id:time, covariance(unstructured) residuals(independent) mle variance
I want indepvar1 (time) to be random in coefficient and  intercept, eg. each id has its own slope and overall, different treatment has different slope at each time point. However, when I do 
margins treatment, at(time=(0 6 12 24)) then marginsplot, I got two straight parallel lines. How should I fix that?
Thank you very much!

I have sent the same email before. However, I found some of the text has been changed during the process. That's why I send it again. Thanks. 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index