Announcement

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

  • Graphing three-way interaction

    Hi Statalist,

    In one of my models I include a three way interaction between two dichotomous variables and one categorical. I am trying to graph the interaction in a way that is easily readable. This is the code so far, however, the graph that I construct is a bit messy. I was wondering if anyone can suggest a more intuitive way to graph this interaction?

    Code:
    margins currwork#year#husjob2
    mplotoffset, recast(scatter) offset(0.1) title(employment status x survey year x occupation)
    I have attached an image of the graph produced.
    Attached Files

  • #2
    Managed to get it graphed properly in case it helps anyone:

    Code:
    margins year, at(husjob2=(0(1)2) currwork=(0 1))
    mplotoffset,recast(scatter)offset(0.1) by(year)

    Comment

    Working...
    X