Announcement

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

  • marginal effects multinomial logit model

    After the estimation, I used margins, dydx(*) command to compute the marginal effect,, I then use outreg2 using myreg.doc, replace ctitle(Model 1) to export the result to word but the output is not showing the base outcome, my DV is categorical with 5 unorderd categories, the output is only showing the 4 categories without the base, I tried different commands but all effort proved aborted, please some one should help me out.. attached is the output.
    Attached Files

  • #2
    Deleted
    Last edited by Dimitriy V. Masterov; 12 Jan 2023, 17:11.

    Comment


    • #3
      I think you could do it like this:

      Code:
      capture rm "my_mlogit.txt"
      capture estimates clear _all
      webuse sysdsn1
      mlogit insure c.age i.(male nonwhite site), nolog
      estimates store M
      forvalues i = 1/`=e(k_out)' {
          local lab: label insure `i'
          estimates restore M
          margins, dydx(*) predict(outcome("`lab'")) post
          estimates store `lab'
          local outcomes "`outcomes' `lab'"
      }  
      outreg2 [`outcomes'] using "my_mlogit.txt", replace nonotes label

      Comment


      • #4
        Thank you for the response, please find attached the outcome, please, way forward
        Attached Files

        Comment

        Working...
        X