Announcement

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

  • Exporting marginal effects (first differences and contrasts) to word

    Dear all,
    I need your help on how I would be able to export marginal effects (both first differences and second differences) of interactions from Stata to word. I fit a logit model:
    svy: logit outcomvar i.v106_new i.v025 i.adolescent_age_F i.media_new i.husband_edu_new i.v190 i.region_f i.religion_f i.women_occupation i.husband_occupation i.wantedness_child i.birthor i.v106_new#i.v025 i.v106_new#i.adolescent_age_F i.v106_new#i.media_new i.v106_new#i.husband_edu_new i.v025#i.media_new i.v025#i.husband_edu_new i.v025#i.adolescent_age_F i.adolescent_age_F#i. husband_edu_new i.media_new#i.husband_edu_new i.v025#i.wantedness_child i.media_new#i.wantedness_child i.adolescent_age_F#i.wantedness_child i.v025#i.v106_new#i.media_new i.women_occupation i.husband_occupation i.wantedness_child i.birthor

    Then I do this

    margins v106_new#v025
    then this:
    margins v025, dydx (v106_new)
    Finally this:
    margins v025, dydx (v106_new) pwcompare (effects)
    Now I want to do these codes for all interacting variables (not just for the interaction between v025 and v106_new, but for all the interaction in my model) and export the result to word in tables. I want to export the
    dydx () of both first differences ( margins v025, dydx (v106_new) and second differences/ contrasts) (margins v025, dydx (v106_new) pwcompare (effects) for all interactions at once.

    Your help is much appreciated.

  • #2
    Duplicate post. See https://www.statalist.org/forums/for...=1679411486444

    Comment

    Working...
    X