Announcement

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

  • estout with two sets of margins

    Suppose I have a model like this:
    Code:
    webuse nlswork
    poisson hours i.union##c.tenure, robust
    margins union, dydx(tenure)
    margins rb1.union, dydx(tenure)
    I would like to stack the two AMEs on top of the differences of the AMEs using Ben Jann's -estout-. Unfortunately, you need to post the margins results for estout, which interferes with the second margins command.

    Is there any way around this?

  • #2
    Cross-posted at Stackoverflow.
    Suppose I have a model like this: webuse nlswork poisson hours i.union##c.tenure, robust margins union, dydx(tenure) margins rb1.union, dydx(tenure) I would like to stack the two AMEs on top of ...

    Comment


    • #3
      First store the estimates and then restore:
      Code:
      webuse nlswork
      poisson hours i.union##c.tenure, robust
      estimates store model
      margins union, dydx(tenure) post
      estimates store margins1
      estimates restore model
      margins rb1.union, dydx(tenure) post
      estimates store margins2
      ...

      Comment


      • #4
        I think I wasn't clear enough in my OP. I want to stack the difference in the marginal effects below the marginal effects themselves with significance stars. Is that possible?

        Comment

        Working...
        X