Hi Stata forum members
I need help with "contrast" syntax. I have a continuous outcome measured at baseline and at three time points. There is an exposure variable (four-level) measured between the baseline and I am running the following random effects model:
How can I test the contrast (-1, 0.5, 0.5) in time i.e. between time period 1 and the average of time periods two and three?
How can I then test the interaction of time--contrasting level 1 versus levels 2 and 3--and exposure?
Thank you
Rena
I need help with "contrast" syntax. I have a continuous outcome measured at baseline and at three time points. There is an exposure variable (four-level) measured between the baseline and I am running the following random effects model:
Code:
xtmixed outcome i.exposure##time outcome_bl || id:
How can I then test the interaction of time--contrasting level 1 versus levels 2 and 3--and exposure?
Thank you
Rena
Comment