Announcement

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

  • Combining 2 plots for HL

    Hi all,

    I am trying to combine 2 plots (attached) that show observed versus predicted value of a previously established score. First plots is the plot before and the second plot after recalibration.

    * Validation
    Code:
    hl Indepat30d ICHgsscore_funcout_p, q(ICHgsscore) plot
    * Recalibration
    Code:
    logistic Indepat30d ICHgsscorefunclo, coef               
    hl, q(ICHgsscore) plot
    I would like to overlie this two plots and have tried the following, which didnt work at all:
    Code:
    hl Indepat30d ICHgsscore_funcout_p, q(ICHgsscore) plot || hl, q(ICHgsscore) plot
    hl Indepat30d ICHgsscore_funcout_p, q(ICHgsscore) plot [addplot hl, q[ICHgsscore] plot]
    The following, which I found on the forum, gave me both graphs side by side (attached):
    Code:
    graph combine "Graph ICHGS for mort obs vs pred before recal, 09.05.2018.gph" "Graph ICHGS for mort obs vs pred after recal,09.05.2018.gph"
    But I would like to have them overlying each other

    I have read the information in "help addplot" and "help graph combine" and have read the posts in the forum but I can't make it work.

    I am using stata 15.

    Thanks for any help.
    Attached Files
Working...
X