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
Three way interaction without significant two way interaction?Hello, Does anyone know if it is legitimate to proceed with threeway interactions when the two-way …
Annualize monthly returnsDear Statalist users, I would like to annualize monthly returns on funds by using the following for…
Matching with replacement based on size and industryHi, I am currently doing my thesis and I am struggling with this problem. I have a panel dataset i…
lead (t+1) variablesDearest All I am confronting an issue I have a dataset which consists of 10574 observations panning…
Interaction Term Graphs for Quadratic TermsHi All, I have the following regression equation. I am trying to see the interaction effect of a bi…
Subscribe to:
Post Comments (Atom)
0 Response to reghdfe and quadratic local time trend
Post a Comment