I have a dataset with 5 variables named sid, year, c, EBITDA and IN. I want to see what effect treatment (c) has on EBITDA and have for that matter calculated EBITDA three years before and three years after treatment (c). I need some help running a regression analysis on before and after treatment, and year of the treatment (c) for each company should be excluded from the analysis. I would also like to see if the effect of the treatment is different when IN = 1 compared to IN = 0. If anyone could help me with this it would be much appreciated. If you need some more information just let me know.
sid = company id
year = what year
c = 1 = year of treatment
EBITDA is a variable for profitability
IN = 1 if the company has an international owner.
This is an example of how the dataset looks:
Thanks in advance,
Heath
sid = company id
year = what year
c = 1 = year of treatment
EBITDA is a variable for profitability
IN = 1 if the company has an international owner.
This is an example of how the dataset looks:
Code:
* Dataset created by -data-ex. To install: ssc install data clear input float(sid year c EBITDA IN) 1 2000 0 75 0 1 2001 0 80 0 1 2002 0 85 0 1 2003 1 70 1 1 2004 0 85 1 1 2005 0 110 1 1 2006 0 130 1 2 2004 0 10 0 2 2005 0 15 0 2 2006 0 15 0 2 2007 1 5 0 2 2008 0 15 0 2 2009 0 25 0 2 2010 0 40 0 3 2009 0 133 0 3 2010 0 143 0 3 2011 0 153 0 3 2012 1 110 1 3 2013 0 130 1 3 2014 0 170 1 3 2015 0 180 1 end
Code:
. list, sepby(sid) +-------------------------------------+ | sid year c EBITDA IN | |-------------------------------------| 1. | 1 2000 0 75 0 | 2. | 1 2001 0 80 0 | 3. | 1 2002 0 85 0 | 4. | 1 2003 1 70 1 | 5. | 1 2004 0 85 1 | 6. | 1 2005 0 110 1 | 7. | 1 2006 0 130 1 | |-------------------------------------| 8. | 2 2004 0 10 0 | 9. | 2 2005 0 15 0 | 10. | 2 2006 0 15 0 | 11. | 2 2007 1 5 0 | 12. | 2 2008 0 15 0 | 13. | 2 2009 0 25 0 | 14. | 2 2010 0 40 0 | |-------------------------------------| 15. | 3 2009 0 133 0 | 16. | 3 2010 0 143 0 | 17. | 3 2011 0 153 0 | 18. | 3 2012 1 110 1 | 19. | 3 2013 0 130 1 | 20. | 3 2014 0 170 1 | 21. | 3 2015 0 180 1 | +-------------------------------------+ end
Heath
Comment