Announcement

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

  • coefplot, margins, and est store - not storing all partial derivatives

    When I use coefplot, it is only capturing the marginal effects for one level of the unordered categorical variable (control2015).

    Code:
    reg govindex2015 ib1.control2015 c.personalsafety2015 i.language2015 tbviolence2015 armyviolence2015 policeviolence2015 tbsympathy2015 ib1.control2015#c.personalsafety2015 c.personalsafety2015#i.language2015 ib1.control2015#i.language2015 ib1.control2015#c.personalsafety2015#i.language2015
    
    
    margins, dydx(control2015) at(personalsafety2015=(1(1)5) language2015=(2)) post
    est store m2
    coefplot m2, xline(0)

    With this, the coefplot graph will only display the coefficients in table 2 while ignoring table 3 (attached image).

    Attached Files

  • #2
    shameless bump for help

    Comment


    • #3
      Nobody can test your code, because you did not include a minimal working example or use an accessible data set, as requested in FAQ 12.
      Steve Samuels
      Statistical Consulting
      [email protected]

      Stata 14.2

      Comment

      Working...
      X