Announcement

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

  • Probit Interaction Marginal Effects

    I would like to test if the "gap" in a discrete variable,Y, changes between two groups from year to year.
    In the setting of a Linear Probability Model I would estimate the following equation:

    Click image for larger version

Name:	DiD.png
Views:	1
Size:	15.1 KB
ID:	1597968

    And then test the 𝛿𝑗 coefficients. I want to replicate the same exercise but in a Probit/logit setting but I am unsure about how to proceed.
    I cannot find the right code to get the marginal effects analogous to 𝛿
    𝑗 and I am not sure that this is even the right approach.
    Summarizing, my goal is to quantify how the probit marginal effect of Treat, ß1, changes year by year and to test whether those differences are statistically significant.
    Any ideas?

    Note: My data is a repeated cross section. I do not have a panel data set.


  • #2
    Hi Bruno,
    Unfortunately, you cannot estimate the effect of "delta_i" only, because of the nonlinear nature of probit or logit models.
    There are couple of options, however that you can use:
    Code:
    margins year, dydx(treat)
    margins r.year##r.treat, dydx(treat)
    margins , dydx(treat) over(year)
    They will give you the marginal change in the probability success if treated across years.
    HTH

    Comment


    • #3
      Thanks, I'll try everything and see which one gives me the results that I want.
      UPDATE:
      After testing all of these
      Code:
       
       margins r.year##r.treat, dydx(treat)
      Seems to be what I am looking for, however I am not entirely sure of what Stata is doing. Could you tell me what does the r. prefix does please?
      Last edited by Bruno Jimenez; 16 Mar 2021, 17:12.

      Comment


      • #4
        As far as I know, this is what the command (as i suggested) works.
        If you estimate a probit model with interaction like this:

        Code:
        P(Y|D,T) =F( a0 +a1*D +a2*T+a3*D*T)
        where F is our Cumulative normal function.
        If you use the syntax:
        Code:
        margins r.D##r.T
        Stata estimates different probabilities:
        E(P(Y=1|D=1)); E(P(Y=1|D=0)), E(P(Y=1|T=1)) ; E(P(Y=1|T=0))
        E(P(Y=1|D=1,T=1)) ; E(P(Y=1|D=1,T=0)) ; E(P(Y=1|D=0,T=1)); E(P(Y=1|D=0,T=0))

        and uses them to evaluate how the expected probabilities change for the treated or untreated group (D) before and after treatment T.




        Comment


        • #5
          I understand, thanks.

          Comment

          Working...
          X