Hi all,
I am running a regression using "reghdfe", with state fixed effect (FE), time FE, and state linear/quadratic/cubic time trend. I wonder if my codes are correct:
gen yearsq=year*year
gen yearcb=year*year*year
reghdfe Y X1 X2 X3, absorb (state year i.state#c.year) for linear time trend
reghdfe Y X1 X2 X3, absorb (state year i.state#c.year i.state#c.yearsq) for quadratic time trend
reghdfe Y X1 X2 X3, absorb (state year i.state#c.year i.state#c.yearsq i.state#c.yearcb) for cubic time trend
Are there differences if I code like this:
reghdfe Y X1 X2 X3 i.state#c.year i.state#c.year#c.year i.state#c.year#c.year#c.year, absorb (state year)
Thank you very much if you could help me to explain this.
Thien.
Related Posts with reghdfe and quadratic local time trend
transforming then imputing or vice-versaHi all, I was wondering whether it is better to transform the data then impute the missing values or…
missing valures imputationHi all, I am trying to impute my missing values but i i get an error message i can't figure out what…
Test statistic Pesaran and SmithHello, I have been trying to check if there was already some code about the test statistic about po…
Adaptive Gauss-Hermite QuadratureHi everyone, I am practising using the adaptive quadrature to programme the (log-) likelihood funct…
Interaction terms in mixed-effects regressionHi statalisters ... I need some help to interpret the coefficients of some mixed-effects models in m…
Subscribe to:
Post Comments (Atom)
0 Response to reghdfe and quadratic local time trend
Post a Comment