Dear statalist community,
I am conducting an analysis on green tariffs and renewable rebounds. Precisely, I want to understand whether households that switched to a green tariff tend to consume more electricity than people who use grey energy.
The dataset that I am using is the German Socio-Economic Panel.
What I want to do is to set the year of the switch as the reference year for each household. So, for example, household 1 switched to a green tariff in 2012. Therefore, 2012 = 0, 2013 = 1, 2014 = 2 and 2011 = -1, 2020 = -2. On the other hand, household 2 switched to a green tariff in 2013. So, 2013 = 0, 2014 = 1, 2015 = 2, and 2012 = -1.
How can I do this on Stata?
There is anyone who is able to help me?
Thank you very much!
Related Posts with Panel: setting one year as the reference year.
How to mark weekday and weekend in time series plot?Hi everyone, I have a transaction dataset and I want to see if sales is different between weekday a…
Fixed effects model dummys left out due to collinearityHello everyone, Currently I am trying to regress a sample of approximately 1600 funds over 131 (mon…
Rangestat with recursive windowDear all, I intend to use rangestat command to do a regression by industry, using recursive 3-year …
Excluding 5% of smallest observations for subgroup with panel dataHello, I have panel data for a sample of European banks. However, the sample is not really represen…
Multiple Linear Regression PlotHi, good afternoon I would like to make a graph of my MLR like the one you can make for simple line…
Subscribe to:
Post Comments (Atom)
0 Response to Panel: setting one year as the reference year.
Post a Comment