<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281846#M9990</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding, I thought that Proc Lifetest was for Kaplan-Meier Survival Curves, and Proc PHREG was for Hazard Ratio's, i.e. Forest Plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone else might know more though...&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jul 2016 17:28:56 GMT</pubDate>
    <dc:creator>djrisks</dc:creator>
    <dc:date>2016-07-02T17:28:56Z</dc:date>
    <item>
      <title>Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281845#M9989</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for your time and I apologize for how naieve my question might be! I am just looking for big-picture input - not expecting code or any specific solution. For the record I am using SAS 9.3 and do not currently have access to SAS 9.4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am generating a survival plot using PHREG. &amp;nbsp;I have&amp;nbsp;generated survival plots using two different methods: 1) plots generated within PHREG using the PLOTS = option and 2) plots generated using SGPLOT and the dataset output by the PHREG BASELINE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For either of these approaches, is it possible (in SAS 9.3) to generate a survival plot that contains the number of subjects at risk along the x-axis (time)? &amp;nbsp;I know how to do this in PROC LIFETEST (i.e. by using PROC TEMPLATE); however I can't figure out how to do this in PROC PHREG. &amp;nbsp;Can I use the same PROC TEMPLATE approach I use&amp;nbsp;for PROC LIFETEST&amp;nbsp;to revise the axis in SGPLOT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reviewed the following resources (and drawn the corresponding conclusions):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_phreg_sect006.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/viewer.htm#statug_phreg_sect006.htm&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This&amp;nbsp;reference seems to indicate that PHREG is capable of generating the ATRISK data. &amp;nbsp;However, I can't figure out how to incorporate it in the plot. Furthermore, I'm not sure how to output these data in the dataset generated by my BASELINE statement. &amp;nbsp;However, I assume I can figure out how to join&amp;nbsp;the ATRISK table with my survival table. But this still doesn't solve the problem of how to get it into the plot.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2014/02/09/survival-plot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2014/02/09/survival-plot/&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;This reference seems to indicate that SAS 9.4 incorporates&amp;nbsp;is capable of doing what I want (i.e. plot ATRISK values using SGPLOT's XAXISTABLE statmenet. However, as far as I can tell, this reference only describes how SAS 9.3 can plot the ATRISK values using PROC LIFETEST.&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 02 Jul 2016 17:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281845#M9989</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2016-07-02T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281846#M9990</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding, I thought that Proc Lifetest was for Kaplan-Meier Survival Curves, and Proc PHREG was for Hazard Ratio's, i.e. Forest Plots.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone else might know more though...&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 17:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281846#M9990</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2016-07-02T17:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281847#M9991</link>
      <description>&lt;P&gt;PHREG does have the ability to generate survival plots. &amp;nbsp;In my experience it can be useful&amp;nbsp;in case where you want to generate plots that are adjusted (or weighted) for other factors beyond the strata displayed in the plot (or weighted). &amp;nbsp;However,&amp;nbsp;perhaps it is limited in other ways (e.g. maybe it can't be used to display ATRISK data).&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 17:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281847#M9991</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2016-07-02T17:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281866#M9993</link>
      <description>&lt;P&gt;I am not very familiar with the details of&amp;nbsp;LIFETEST or PHREG, but I have used LIFETEST to generate survival data along with the ATRISK table at intervals. &amp;nbsp;This data can be saved to a data set using ODS OUTPUT statement. &amp;nbsp;Then one can use SGPLOT to create the actual survival plot that includes the display of the at risk values. &amp;nbsp;With SAS 9.4, you can ues XAXISTABLE that has been explicilty built for such use cases to display the at-risk data. &amp;nbsp;With SAS 9.3, you can display the at-risk data using SGANNOTATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The paper "&lt;A href="http://support.sas.com/rnd/datavisualization/papers/sgf2016/SAS4321-2016.pdf" target="_blank"&gt;Clinical Graphs Using SAS&lt;/A&gt;" describes both methods.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2016 23:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281866#M9993</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2016-07-02T23:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to add ATRISK data to a survival plot generated using PHREG or PHREG+SGPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281877#M9995</link>
      <description>&lt;P&gt;I think you can use the method here. You'll need to generate your data and probably create a custom template using SGTEMPLATE, then use SGRENDER to create your plot.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2011/11/28/survival-plot-with-external-at-risk-table/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2011/11/28/survival-plot-with-external-at-risk-table/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 03:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Is-it-possible-to-add-ATRISK-data-to-a-survival-plot-generated/m-p/281877#M9995</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-03T03:40:34Z</dc:date>
    </item>
  </channel>
</rss>

