Hi Stata community,
I have an unbalanced panel data set for the years 1992-2018 across different years from various industries classified through 4-digit SIC codes. I tried running firm, year and industry fixed effects models separately using the -areg- commands, which gave me decent results. Now my supervisor wants me to run a fixed effect model with two key variables combined (year and industry), with clustered standard errors by firms. Could anyone give me an idea on what sort of codes would be appropriate?
I ran the following command for the single variable (firm, industry and year) fixed effect models individually:
xtset company_id fiscalyear
areg DV IV1 IV2 IV3, absorb (fiscalyear)
areg DV IV1 IV2 IV3, absorb (company_id)
areg DV IV1 IV2 IV3, absorb (sic)
Looking forward to your suggestions! Cheers!
Related Posts with Two variables combined fixed effect with clustered standard errors of another variable
Multilevel/Hierarchical models and clustered-robust standard errorsMultilevel/hierarchical model with clustered-robust standard errors. I have reviewed various posts o…
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
graph add vertical line using value in macro variableI am using Stata 13 I want to develop code to add a single vertical line on a graph using a value ob…
interaction effects LPM vs logisticHi! I am trying to understand why my interaction effects get different signs when using an logistic…
Observations in new variable that shouldn't be includedHello, I am trying to make a new variable with the following command Code: gen gift_group_test = …
Subscribe to:
Post Comments (Atom)
0 Response to Two variables combined fixed effect with clustered standard errors of another variable
Post a Comment