Statalist


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

st: RE: predict residual after treatreg


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: predict residual after treatreg
Date   Sun, 1 Jun 2008 17:15:51 +0200

**********
webuse labor, clear
g byte wc = 0
replace wc = 1 if we > 12

treatreg ww wa cit, treat(wc=wmed wfed) two
db predict
**********

to see the available options under predict...

Alternatively type -h treatreg postestimation-

Martin Weiss
_________________________________________________________________

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen
Germany

Fon: 0049-7071-2978184

Home: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1130

Publications: http://www.wiwi.uni-tuebingen.de/cms/index.php?id=1131

SSRN: http://papers.ssrn.com/sol3/cf_dev/AbsByAuth.cfm?per_id=669945

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Shehzad Ali
Sent: Sunday, June 01, 2008 2:49 PM
To: [email protected]
Subject: st: predict residual after treatreg

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/

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index