Hello Everyone,
I recently started to use Stata for a paper on companies (installation_id below) emissions over 16 years. I am interested in measuring the impact of 3 reforms that happened at different point in time over the 16 years (2008, 2012, 2020). For that matter, I want to observe the difference in Emissions; before 2008, between 2008 and 2012, and after 2013 across companies. My dataset is composed of 337 companies and 5000+ observations on emissions.
1. I understood that I should run a panel data regression and create dummy variables for the 3 reforms. I believe that I should first create dummy variables for each year in the sample but its after that I get confused... Here is my first question:
- How do I group the "year" dummy variables into 3 "Phase" dummy variables ?
Here is the code I tried and ran but I am unsure if its relevance:
"generate Phase1 = (year<2008)
generate Phase2 = (year>2007) & (year<2013)
generate Phase3 = (year>2012)
xtset installation_id year
xtreg Emissions Phase 2 Phase 3"
2. From this, I want to add a dimension in the regression above which consists in measuring whether a listed or non-listed company on the stock exchange will have a lower/higher emissions volume. What term should I add in my model to reflect this ?
I just started using stata which is why I struggle with that type of problem...
I hope I provided enough information, let me know if I can precise things for you.
Cordially,
Diego
I recently started to use Stata for a paper on companies (installation_id below) emissions over 16 years. I am interested in measuring the impact of 3 reforms that happened at different point in time over the 16 years (2008, 2012, 2020). For that matter, I want to observe the difference in Emissions; before 2008, between 2008 and 2012, and after 2013 across companies. My dataset is composed of 337 companies and 5000+ observations on emissions.
1. I understood that I should run a panel data regression and create dummy variables for the 3 reforms. I believe that I should first create dummy variables for each year in the sample but its after that I get confused... Here is my first question:
- How do I group the "year" dummy variables into 3 "Phase" dummy variables ?
Here is the code I tried and ran but I am unsure if its relevance:
"generate Phase1 = (year<2008)
generate Phase2 = (year>2007) & (year<2013)
generate Phase3 = (year>2012)
xtset installation_id year
xtreg Emissions Phase 2 Phase 3"
2. From this, I want to add a dimension in the regression above which consists in measuring whether a listed or non-listed company on the stock exchange will have a lower/higher emissions volume. What term should I add in my model to reflect this ?
I just started using stata which is why I struggle with that type of problem...
I hope I provided enough information, let me know if I can precise things for you.
Cordially,
Diego

Comment