<?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: How to overlay 2 survival plots with adjustment of confounders in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/363348#M19097</link>
    <description>&lt;P&gt;Using a categorical variable in the CLASS statement is the usual way to compare groups. As you've seen, this also overlays the various&amp;nbsp;groups on the ODS graphics that the procedure creates.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 09:24:59 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-06-01T09:24:59Z</dc:date>
    <item>
      <title>Re: How to overlay 2 survival plots with adjustment of confounders</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/363330#M19096</link>
      <description>&lt;P&gt;Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for trying to help!&lt;/P&gt;&lt;P&gt;The SAS I'm using is in version 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding to the data, it's a traditional survival data which contains&lt;/P&gt;&lt;P&gt;#1 event variable: allcause, 0 as not dead, 1 as dead&lt;/P&gt;&lt;P&gt;#2 follow-up time: followtime&lt;/P&gt;&lt;P&gt;#3 main independent variable: NewSurgeIndex: 1, 2, and 3 represent 3 different groups&lt;/P&gt;&lt;P&gt;#4 other confounders: sex age bmi_1 smoke alcohol ldl_c meansbp nightdaysbpratio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, what I'm trying to do is to estimate survival probability for NewSurgeIndex with adjusting for confounders.&lt;/P&gt;&lt;P&gt;Moreover, in order to make these three groups comparable, so I need to draw these three survival curves on the same graph.&lt;/P&gt;&lt;P&gt;Actually, I've came out one way to achieve this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS GRAPHICS ON;
PROC PHREG DATA=one PLOTS(OVERLAY)=SURVIVAL;
		CLASS NewSurgeIndex;
	MODEL followtime*allcause(0)= sex age bmi_1 smoke alcohol ldl_c 
				  meansbp nightdaysbpratio NewSurgeIndex;
	BASELINE COVARIATES=one OUT=Pred1 SURVIVAL=_ALL_/ DIRADJ GROUP=NewSurgeIndex;
ODS GRAPHICS OFF;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9157iEF75BD9A656CC85E/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="SurvivalPlot.png" title="SurvivalPlot.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, very welcome if you have any better idea!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 06:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/363330#M19096</guid>
      <dc:creator>Chung-Li</dc:creator>
      <dc:date>2017-06-01T06:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 survival plots with adjustment of confounders</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/363348#M19097</link>
      <description>&lt;P&gt;Using a categorical variable in the CLASS statement is the usual way to compare groups. As you've seen, this also overlays the various&amp;nbsp;groups on the ODS graphics that the procedure creates.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 09:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/363348#M19097</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-06-01T09:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 survival plots with adjustment of confounders</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/364809#M19153</link>
      <description>Thank you Rick!&lt;BR /&gt;Now I can use it more confidently.&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jun 2017 02:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Re-How-to-overlay-2-survival-plots-with-adjustment-of/m-p/364809#M19153</guid>
      <dc:creator>Chung-Li</dc:creator>
      <dc:date>2017-06-07T02:25:26Z</dc:date>
    </item>
  </channel>
</rss>

