Hello I am planning to run a fixed effect model in stata. However I would like to discuss here 1) whether my method is the right way to go and 2) why all my dummy variables are ommited.
My variables are: firmcode year dependentvariables independentvariables industry (50industries in total, each of them I give a specific value (eg. if telecommunication then industry = 1, 0 otherwise, hoping to find how industries are having an effect on dependent variable)
My code:
xtset firmcode year
xtreg dependentvariable idependent variables i.year i.industry, fe vce(robust)
My intention for i.year is to control for any serial correlation that may occur in my panel data ; my intention for i.industry is to control for industry-level effects (for example, firms in specfic industries may have significant effects on my dependent variable). And this is also one variable of interest ; vce(robust) is to adjust for heteroskedasticity.
However after I run the test, all my industry dummies are ommited due to collinearity
note: industry_code1 omitted because of collinearity
note: industry_code2 omitted because of collinearity
note: industry_code3 omitted because of collinearity
note: industry_code4 omitted because of collinearity
note: industry_code5 omitted because of collinearity
note: industry_code6 omitted because of collinearity
note: industry_code7 omitted because of collinearity
I am very comfused why that happened and I cannot analyse the firm-level effects. I wonder if anyone can give me advise on how to resolve that issue.
And I would be quite grateful if anyone can give me advice on how to refine my model overall!
Many thanks in advance!
Related Posts with Help me with fixed effect model please! Many thanks
How to loop over quarters starting at third quarterHello, I am dealing with fixed width data in a .txt file that includes date. The data spans 1973 to…
Non stopping iterations problem with teffects ipwraHi all, I am trying for the first time to run my difference-in-difference model with inverse propen…
Stata added observations with very small or very large valuesStrange Stata issue. For unclear reasons, Stata recently added a number of observations with bizarr…
Poisson not concaveDear forum, May I ask what it is that causes a Poisson model to not converge? I have a panel dat…
Set path to a link folderHello everyone, I am working on a project which takes several INPUT from several folders disseminat…
Subscribe to:
Post Comments (Atom)
0 Response to Help me with fixed effect model please! Many thanks
Post a Comment