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
"dir" command not preserving caseHello, I am trying to append .csv files from multiple folders within folders. I have 8 parent folde…
Distribution of values among multiple variablesHello there, I have a question concerning my data set. I want to find out the total distribution of…
top 10 _Panel Data Greetings to all I am new in STATA, I am currently working on Panel data, the main variables are: -…
XtdataHi all, I am trying to use the command xtdata to convert data in order to perform the regress comma…
svyset commandGood morning, everyone, thank you for taking the time to help me understand this problem. Excuse me,…
Subscribe to:
Post Comments (Atom)
0 Response to reghdfe and quadratic local time trend
Post a Comment