Announcement

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

  • Creating margin plots with MCP2

    Hi everyone, hoping that everything is well!

    I have an urgent question. I want to present interaction terms graphically. I use the following code:
    Code:
    reg Gini_DispSWIID GLPIntensity PDI IDV UAI MAS c.GLPIntensity#c.PDI c.GLPIntensity#c.IDV c.GLPIntensity#c.UAI c.GLPIntensity#c.MAS InflationGDPdeflatorannual Ruralpopulation Populationgrowthannual TradeofGDP Schoolenrollmentsecondary GDPgrowthadjustedforinflati Wageandsalariedworkerstotal Currenthealthexpenditureof LevelofdemocracyPolityV Arablelandoftotal
    
    mcp2 IDV, ci
    mcp2 IDV, ci show at1(18(1)80)
    mcp2 c.GLPIntensity#c.PDI, ci
    mcp2, at(c.GLPIntensity#c.PDI=(20(5)80))
    margins GLPIntensity, at(PDI=(20(5)80))
    I specifically want to graphically present the effect of the interaction terms c.GLPIntensity#c.PDI c.GLPIntensity#c.IDV c.GLPIntensity#c.UAI c.GLPIntensity#c.MAS on the Gini_DispSWIID.
    Separately, and if possible, all at the same time.
    However, neither of the MCP2 commands written above seem to describe that effect.

    Could you guys please help me in the right direction?

    Thanks in advance.

    Matt
Working...
X