Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • collinearity with i.Year

    Greetings,

    I am trying to run a regression on my panel data. I have 400 firms for 10 years, from 2012 to 2021. I did try the command reg and xtreg but after running a regression, I don't know why Stata omitted the last year, 2021, because of collinearity.
    Click image for larger version

Name:	Screenshot (72).png
Views:	1
Size:	61.6 KB
ID:	1705701

    Does this omitting affect my results?

    Thank you.
    Last edited by Alhanouf Almubarak; 14 Mar 2023, 12:57.

  • #2
    It depends what it is collinear with. If it's with an independent variable that you are interested in studying, then yes that's a problem. If it's with a control variable, then you can just ignore the collinearity. Install reghdfe from SSC and the collinear variable will drop out if you absorb the year indicators.

    Code:
    reghdfe TobinQ D_SCORE Cash Size ROA MTB LEV, absorb(Year SIC2) vce(cluster(SIC2))

    Comment


    • #3
      Thank you, Andrew.
      Last edited by Alhanouf Almubarak; 14 Mar 2023, 15:28.

      Comment

      Working...
      X