Bookmark and Share

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


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

st: Predicted values graph from difference-in-difference


From   Jonas Eeg Madsen <[email protected]>
To   <[email protected]>
Subject   st: Predicted values graph from difference-in-difference
Date   Fri, 7 Jun 2013 17:26:19 +0200

Dear All

I hope some of you can help with this question

I have made a difference-in-difference regression with data from 3 years:
2010 2011 2012. The reform I am testing was in 2010, and the next two years
is post reform. So 2010 is reference category. 
My data is 3 times the actual number of observations. So every unit appears
3 times, one for 2010, 2011 and 2012. 

reg  andel_pleje  fisk  2011  2012  fisk*2011  fisk*2012  enlige  socio
 antal_børn  Region  ireland, vce(cluster Komnr)

or

reg  x1  x2_2011  x2_2012  x1*x2_2011  x1*x2_2012  k1 k2 k3 k4 k5,
vce(cluster Komnr)

x1                        are fiscal pressure or not, 0 or 1
x2_2011             are a dummy for 2011 with 0 or 1 
x2_2012            are a dummy for 2012 with 0 or 1 
x1*x2_2011     are interaction term for 2011
x1*x2_2012     are interaction term for 2012
k1-k5                  are control variables


So what I want is to predict values on Y for the three years 2010, 2011 &
2012. The values has to be split on the two categories on x1 (fisk ) which
is fiscal pressure or not
Basically I want the values to be shown in a graph with y-values on Y and
2010, 2011 & 2012 on the X, and then two lines for fiscal pressure or not

and again 2010 is reference category, but I need the predicted estimate for
2010 as well



I hope I have made my question clear, otherwise please ask again

Thanks for any help

/Jonas

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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