Announcement

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

  • Collecting marginal effects after oprobit

    Dear members,

    I am trying to generate marginal effects after oprobit. I am able to get the marginal effects, but not able to put them in a table format.
    Here is what I did:

    Code:
    **run ordered probit**
    
    oprobit local_OP IMR  male married  trust_italian_pmt trust_eur_pmt trust_municip_govt trust_people i.year
    
    margins, dydx(*) post
    **create a table from marginal effects**
    etable, showeq 
    **put outcome categories in columns**
    collect layout (coleq#result[_r_b _r_se stars])  (colname[]#stars[value])
    collect stars _r_p 0.01 "***" 0.05 "** " 0.1 "* ", attach(_r_b) shownote
    collect preview
    But the end result does not show the significance stars. Could anyone suggest what I need to do to modify my codes to get the significance stars in the outcome table?

    Thanks,
    Anwesha

  • #2
    Change
    Code:
    collect layout (coleq#result[_r_b _r_se stars]) (colname[]#stars[value])
    collect stars _r_p 0.01 "***" 0.05 "** " 0.1 "* ", attach(_r_b) shownote
    to
    Code:
    collect layout (coleq#result[_r_b _r_se]) (colname[]#stars)
    collect stars _r_p 0.01 "***" 0.05 "** " 0.1 "* ", attach(_r_b) shownote dimension

    Comment


    • #3
      That worked.
      Thank you.

      Comment

      Working...
      X