Announcement

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

  • #16
    Big thanks Richard!

    Comment


    • #17
      For good measure, I'll just note that you could also do this with a single -margins- command. The dydx is asking for the difference between the two groups at the values specified in the at statements.

      Code:
      . margins, dydx(team) at(cds = 0 crisis = 1) at(cds = 1 crisis = 0) at(cds = 1 crisis = 1)
      
      Conditional marginal effects                    Number of obs     =        189
      Model VCE    : OLS
      
      Expression   : Linear prediction, predict()
      dy/dx w.r.t. : 1.team
      
      1._at        : crisis          =           1
                     cds             =           0
      
      2._at        : crisis          =           0
                     cds             =           1
      
      3._at        : crisis          =           1
                     cds             =           1
      
      ------------------------------------------------------------------------------
                   |            Delta-method
                   |      dy/dx   Std. Err.      t    P>|t|     [95% Conf. Interval]
      -------------+----------------------------------------------------------------
      1.team       |
               _at |
                1  |   1.402597   2.292253     0.61   0.541    -3.120377    5.925572
                2  |  -3.333333   2.320506    -1.44   0.153    -7.912057     1.24539
                3  |  -2.720497   2.280193    -1.19   0.234    -7.219675    1.778681
      ------------------------------------------------------------------------------
      Note: dy/dx for factor levels is the discrete change from the base level.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 19.5 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment

      Working...
      X