Announcement

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

  • Interaction with DID impact

    Hello, everyone; thank you for your attention.

    I am working on a TWFE DID model. For individual i in year t :

    Yit = constant + Dit + Xit + YearDummies + eit,
    where Dit is 1 when individual i received treatment in year t , 0 otherwise; Xit is a vector of control variables.



    By theory, I suspect that a variable Zit (not included in Xit) is interacting with the impact of the treatment on Yit. I want to test/show this point in the model. In a normal regression, one can add an interaction term between Zit and the variable it interacts with into the model.



    But how to do it in a DID model as above? May I add the interaction such as:

    Yit = constant + Dit + Dit*Zit + Zit + Xit + YearDummies + eit,

    and, if the coefficient of Dit*Zit is significantly positive, may I say when Zit is higher, the treatment effect is increased positively?
    Last edited by Frank Sherman; 04 Jun 2024, 12:47.

  • #2
    May I add the interaction such as:

    Yit = constant + Dit + Dit*Zit + Zit + Xit + YearDummies + eit,

    and, if the coefficient of Dit*Zit is significantly positive, may I say when Zit is higher, the treatment effect is increased positively?
    It depends, and, it depends.

    It depends on whether Zit also interacts with some of the Xit variables and whether ignoring that might bias the estimate of the interaction with Dit. Of course, you can always get around this limitation by adding the problematic Z#X interaction terms to the model, assuming your data set is large enough to tolerate that many additional variables in the regression and also large enough to adequately power the test of the Z#X interaction.

    Do remember that, as a rule of thumb, if your data set is just large enough to adequately power an interaction for D, you would need a sample 4 times as large to adequately power a test of an interaction Z#D.

    Comment


    • #3
      Originally posted by Clyde Schechter View Post
      It depends, and, it depends.

      It depends on whether Zit also interacts with some of the Xit variables and whether ignoring that might bias the estimate of the interaction with Dit. Of course, you can always get around this limitation by adding the problematic Z#X interaction terms to the model, assuming your data set is large enough to tolerate that many additional variables in the regression and also large enough to adequately power the test of the Z#X interaction.

      Do remember that, as a rule of thumb, if your data set is just large enough to adequately power an interaction for D, you would need a sample 4 times as large to adequately power a test of an interaction Z#D.
      Thank you, Clyde.

      That means the limitations are the sample size and potential z#x, but the basic principle of adding interaction of D#Z as well as the interpretation of this interaction's coefficient are the same as in a non-DID model, correct?

      Comment


      • #4
        Yes, but might include Zit as a variable as Clyde suggests.

        Also, make sure you have the cross section fixed effect in there too..

        Comment


        • #5
          Originally posted by George Ford View Post
          Yes, but might include Zit as a variable as Clyde suggests.

          Also, make sure you have the cross section fixed effect in there too..
          Got it. Thanks!

          Comment


          • #6
            You may want to zero center Zit as well.

            Comment


            • #7
              Thank you, I will try zero centering.

              Comment

              Working...
              X