Hello,
I am working on a panel-data and I wish to estimate the regressions on a period of 1995-2015 changes (long run trends). I have tried to generate a new variable displaying the change from 1995-2015 in (log) hours worked (HEMPE) using the following command:
gen diffHEMPE = ln_HEMPE - ln_HEMPE[_n-20]
which indeed displays the difference in changes between 1995 and 2015, but also displays values for 1995, even when I exclude intermediate years. I want it to only display the difference either in year 1995 or in year 2015, any recommendations?
My panel is long- format.
Elena
I am working on a panel-data and I wish to estimate the regressions on a period of 1995-2015 changes (long run trends). I have tried to generate a new variable displaying the change from 1995-2015 in (log) hours worked (HEMPE) using the following command:
gen diffHEMPE = ln_HEMPE - ln_HEMPE[_n-20]
which indeed displays the difference in changes between 1995 and 2015, but also displays values for 1995, even when I exclude intermediate years. I want it to only display the difference either in year 1995 or in year 2015, any recommendations?
My panel is long- format.
Elena
Comment