Hello dear Community,
I would like to do a regression for my research with panel data. More specifically i have firms revenue as my dependent variable and observations of many firms in a time period of 5 years.
As far as i know i have to -xtset- my data.
now i do not know which equation i should use, -xtreg- or -reghdfe-. I want to consider for company fixed effects. Also i am not sure if clustering would be useful in my case.
also what would be the equivalent with -xtreg- of this equiation ?
I would like to do a regression for my research with panel data. More specifically i have firms revenue as my dependent variable and observations of many firms in a time period of 5 years.
As far as i know i have to -xtset- my data.
Code:
xtset company_id year
Code:
reghdfe revenue x1 x2, absorb(company_id)
Comment