Dear statalist users,
I am running a regression in which I have 2 fixed effects: year and 2-digit SIC code. I made these fixed effects as follows:
sum fyear
local a=r(min)
local b=r(max)
forvalues i=`a'(1)`b'{
qui gen yeardum_`i'=0
qui replace yeardum_`i'=1 if fyear==`i'
}
sum SIC2
local a=r(min)
local b=r(max)
forvalues i=`a'(1)`b'{
qui gen sicdum_`i'=0
qui replace sicdum_`i'=1 if SIC2==`i'
}
Now, when I run the regression I get a note that my yeardum_2014 and yeardum_2019 have been omitted because of collinearity. What does this mean? Does this mean that all observations from 2014 and 2019 have been excluded or only the fixed effects for these years?
Hope someone knows.
Kind regards,
Sarah
Related Posts with Regressions: ommisions due to collinearity
Using value labels in graphs through loopsHi all, I am trying to create a graph of weekly_count_visittype (Y axis) and week_num (X axis) separ…
How to use the results of LCA(Latent Class Analysis) in the next step of regression analysis?Hello! I used gsem to perform an LCA analysis and separated the categories. How can I use this cate…
Fillin/expand with panel and different datesHi All, please, could someone help me? I have the data below: Code: * Example generated by -dataex-…
How to reset a loop with a continues set of codes?Hi everyone, I hope you are doing well. I'm posting here because I have a doubt regarding a loop I'…
Inclusion of both Age and Time Indicators in Panel Data AnalysisDear Colleagues, I am analyzing a panel data that collects information on children every two years …
Subscribe to:
Post Comments (Atom)
0 Response to Regressions: ommisions due to collinearity
Post a Comment