Announcement

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

  • marginsplot

    Hello,

    I'm trying to graph the results from margins as follows:
    Code:
    reg ts_1 i.month if sector==1 & NIC2008_2d==1 & gender==1 [fweight=weight], vce(cluster distcode_vdsa)
    margins month
    marginsplot
    Code:
    reg ts_1 i.month if sector==1 & NIC2008_2d==1 & gender==2 [fweight=weight], vce(cluster distcode_vdsa)
    margins month
    marginsplot
    I want to graph the results for both gender in the same graph. How can I do that?

    Thanks

  • #2
    Code:
    reg ts_1 i.month##i.gender if sector==1 & NIC2008_2d==1 [fweight=weight], vce(cluster distcode_vdsa)
    margins, over(month gender)
    marginsplot, xdim(month)
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Thank you, Maarten.

      Comment

      Working...
      X