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
Using Constraints with Movestay commandI want to test Lr test for endogenous switching regression equation (I have used movestay of this), …
How to identify closing triads in a panel data set?Dear Stata experts, I am currently working on a project using panel data with 20.286 observations. …
Absolute value of residualHello Experts A typical measure for firms’ use of earnings management in the finance literature is b…
Regular survival analysis versus competing risk analysisHi, I have a question regarding my analysis setup for research on the exit-route for strategies ado…
My fixed effects regression changes if I omit an omitted variableHello all, I run a fixed effects regression in a linear probability model of self rated health and …
Subscribe to:
Post Comments (Atom)
0 Response to reghdfe and quadratic local time trend
Post a Comment