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
Cox model margins estimatesDear colleagues, I am using STATA version 15.1 and am struggling to estimate margins for a continuo…
Fama French: Calculating portfolio returns within sub-portfolios (aggregation of monthly returns) in different dimensionsHey all, I hope you are doing all well. I would like to calculate portfolio returns for an individ…
Export data in histogramI am new to stata (I am using version Stata/IC 12.1 for Mac, 64-bit Intel) and succeeded in producin…
analysis on two-eye datasetHello, I am trying to compare the intraocular pressure (IOP, a continuous variable) between two trea…
Question: Merging observations in one variable while simultaneously summing the numbers of the related observations in another variableHello I am new to this forum, so sorry if this question has been asked before (tried searching for …
Subscribe to:
Post Comments (Atom)
0 Response to Two variables combined fixed effect with clustered standard errors of another variable
Post a Comment