Announcement

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

  • help with xtset

    Hello,

    I have a panel data. So, I am analysing firm's earnings. However, these firm's are in different countries, and different industries, and i also have different years. I wanted to do a fixed effects model, but I dont know how to xtset the data. Should I cluster according to firm country? And then add the year and industry effect in the fixed effect model? Please help. Thanks.


  • #2
    Mariam:
    I think you should first type:
    Code:
    xtset firm year
    Then sketch a -xtreg,fe- and post back to the list sharing what you typed and what Stata gave you back. Thanks.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X