Announcement

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

  • Plotting predicted values from GEE models

    Hello,

    Something I cannot seem to find help for is plotting predicted values of an outcomes following a GEE model.

    The command I am familiar with, predict, is not running after mi estimate: xtgee. Any advice is appreciated.

    Best regards,
    Kristen

  • #2
    Because you used -mi estimate:- for the regression you must use -mi predict- for the predictions. The problem is coming from -mi-, not from the use of GEE.

    Comment


    • #3
      Thank you, Clyde. I was able to get the predicted values using:

      cap noi mi estimate, dots cformat(%3.2f) saving(miest, replace): ///
      xtgee y x cov, ///
      family(gau) link(i) robust


      mi predict p using miest
      mi predict se using miest, stdp


      I apologize for the basic question, but I am struggling with how to then plot these predicted values and the CIs.

      Comment


      • #4
        In what way do you want to plot them? What is on the horizontal axis? What is on the vertical? What kind of plot? ...

        Comment

        Working...
        X