Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: predict residual after treatreg


From   Shehzad Ali <sia500@york.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: predict residual after treatreg
Date   01 Jun 2008 13:48:42 +0100

Hi,

Apologies for re-posting. My previous message went as a reply rather than a fresh query.

I am trying to predict residuals after running treatreg command. Here is what I am doing:

treatreg y x1 x2 x3, treat (x1=x2 x3 x4) twostep

predict r, resid

treatreg command works but predict command gives this error 'option resid not allowed'.

I need the residuals for further analysis. Any help would be appreciated.

Cheers,

Shehzad *
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index