Announcement

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

  • Graph after xtreg and xtgee with an interaction term

    Dear Statalists,

    I wish to graph the results of my main independent and dependent variables after using the fixed effects model and GEE models where I include the interaction effect of my main independent variable and control variable. I have panel data. Any advice would be of great help!

    Thank you!

    Best
    Jovana

  • #2
    Your question is general and vague, so hard to answer. It is likely that -margins- and -marginsplot- will be involved in this, but lacking more details of what you want, I cannot be sure of that. If you need more specific advice, please post back with example data, the code for and output of your FE and GEE models, and a clear description of exactly what graphs you want to create.

    When posting the example data, be sure to use the -dataex- command. If you are running version 17, 16 or a fully updated version 15.1 or 14.2, -dataex- is already part of your official Stata installation. If not, run -ssc install dataex- to get it. Either way, run -help dataex- to read the simple instructions for using it. -dataex- will save you time; it is easier and quicker than typing out tables. It includes complete information about aspects of the data that are often critical to answering your question but cannot be seen from tabular displays or screenshots. It also makes it possible for those who want to help you to create a faithful representation of your example to try out their code, which in turn makes it more likely that their answer will actually work in your data.

    Comment

    Working...
    X