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
Panel regression - subgroup analysisHello dear community, I am currently analyzing a dataset to find out whether treatment effects diffe…
Has anyone benchmarked the performance of the new -stintcox- "Interval censored Cox proportional hazards model" command?I've been testing out the new stintcox command which fits an Interval-censored Cox model on survival…
Error reshape wide to long: "variable 0_welsh implied name too long"Hello, I used the following command to reshape data from wide to long (example of the data below). …
DiD with back-to-back treatmentsThis post has been deleted. …
Principal component analysisHi, I am using panel data for my study. I want to use principal component analysis (PCA). As a read …
Subscribe to:
Post Comments (Atom)
0 Response to Two variables combined fixed effect with clustered standard errors of another variable
Post a Comment