Dear Statalists,
I am trying to replicate an empirical paper and therefore I am trying to understand the author's regression. He is using first differences for all variables, a lagged dependent variable as an additional regressor and logarithms for some of the variables.
So far, I have figured out the following:
xi: areg lnFIAS_th_USD lngdp lninflation EATR EMTR statutory_corptax, i.year absorb(year) robust
Firstly, to get the first differences, I am trying to do it as follows:
generate fdgdp = d.gdp
Do you think that this is the right way to do it or can anyone help me to get the first differences?
Secondly, I am trying to set up the lagged dependent variable:
gen lag1 = FIAS_th_USD[_n-1]
gen lag2 = FIAS_th_USD[_n-2]
Can anyone help me how to get the first differences and the lagged dependent variable for my regression?
Thank you very much in advance for your help!!
Kind regards,
Ferdi
I am trying to replicate an empirical paper and therefore I am trying to understand the author's regression. He is using first differences for all variables, a lagged dependent variable as an additional regressor and logarithms for some of the variables.
So far, I have figured out the following:
xi: areg lnFIAS_th_USD lngdp lninflation EATR EMTR statutory_corptax, i.year absorb(year) robust
Firstly, to get the first differences, I am trying to do it as follows:
generate fdgdp = d.gdp
Do you think that this is the right way to do it or can anyone help me to get the first differences?
Secondly, I am trying to set up the lagged dependent variable:
gen lag1 = FIAS_th_USD[_n-1]
gen lag2 = FIAS_th_USD[_n-2]
Can anyone help me how to get the first differences and the lagged dependent variable for my regression?
Thank you very much in advance for your help!!
Kind regards,
Ferdi
Comment