Announcement

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

  • How to control for firm and year fixed effects in logistic model?

    I did searches around from Google but did not see any clear evidence of code about applying both time and unit fixed effects in logistic model (1,2,3 ). I am using logistic model and control for firm and year fixed effects for having propensity score for doing PSM afterwards.

    From my intitution, the code should be

    Code:
    xtset firmid year
    xtlogit depvar x1 x2 x3 i.year, fe
    I am wondering it is a correct intitution. Thank you.

  • #2
    Yes, that is how you would code a two-way fixed effects logistic regression in Stata.

    Comment


    • #3
      Originally posted by Clyde Schechter View Post
      Yes, that is how you would code a two-way fixed effects logistic regression in Stata.
      Thank you, Clyde Schechter
      It is solved

      Comment

      Working...
      X