--- 2008/8/22 Shehzad Ali <[email protected]>:
> > I am trying to get counterfactual predictions after regress.
> > Basically, people in my sample are either insured or uninsured. I
> > want to predict how much insured would spend if they were uninsured
> > (assuming their other characteristics remained the same) and vice
> > versa for the uninsured. Can -adjust- help in this situation? Here
> > is what I was trying but not sure if this is right:
> >
> > reg y $xvar insurance_dummy
> >
> > adjust insurance=1 if insurance==0, gen(counter_1)
> > adjust insurance=0 if insurance==1, gen(counter_0)
--- Eva Poen <[email protected]> wrote:
> Yes, this does what you want. Alternatively, you could temporarily
> recode your dummy variable and use -predict-:
>
> replace insurance = 1-insurance
> predict counterfactual if e(sample)
> replace insurance = 1-insurance
also see http://www.stata.com/support/faqs/stat/adjust.html
-- Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
Send instant messages to your online friends http://uk.messenger.yahoo.com
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/