<?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: Can you smooth a Kaplan-Meier curve in SAS? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520572#M4051</link>
    <description>I'm not familiar with GPLOT, but the LOESS examples are here: &lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0e254y1nmv2fjn1t3jybtamodjp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n164hcka7zsw9on1s2w0kb44tnf1" target="_blank"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0e254y1nmv2fjn1t3jybtamodjp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n164hcka7zsw9on1s2w0kb44tnf1&lt;/A&gt;</description>
    <pubDate>Tue, 11 Dec 2018 21:21:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-12-11T21:21:48Z</dc:date>
    <item>
      <title>Can you smooth a Kaplan-Meier curve in SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520542#M4047</link>
      <description>&lt;P&gt;Hello everyone! How can I smooth my Kaplan-Meier curves in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Context:&lt;/STRONG&gt; I am releasing results from a research center. According to their rules, every "step" in the Kaplan-Meier curve needs to have at least X number of respondents. Mine does not meet this requirement so I must smooth out the curve and eliminate the jagged "steps."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my syntax for the Kaplan-Meier curves&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=cancer.modelone method=km plots=survival cs=none notable;
time duration*cancer(0);
strata sex;
symbol1 V=none color=blue line=1;
symbol2 v=none color=red line=1;
title1 font="Arial 11pt" Height=1 Bold 'KM Curve by Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Below is an illustration of what I want. I found these examples online but they are STATA outputs (STATA uses Lowess Smoothing ?? - I'm not familiar with STATA).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smooth km curves.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25570iA1905A254C197C3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smooth km curves.png" alt="smooth km curves.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also not familiar with Macros or SQL. Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 20:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520542#M4047</guid>
      <dc:creator>TL93</dc:creator>
      <dc:date>2018-12-11T20:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you smooth a Kaplan-Meier curve in SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520551#M4048</link>
      <description>You can get the output from the PROC LIFETEST and then apply a LOESS statement within SGPLOT to plot the data instead of using the default SAS output.</description>
      <pubDate>Tue, 11 Dec 2018 20:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520551#M4048</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-11T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can you smooth a Kaplan-Meier curve in SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520561#M4050</link>
      <description>&lt;P&gt;Can I apply LOESS to GPLOT?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used proc gplot because I wanted to adjust the x and y axis of the Kaplan-Meier figure. I got the output from PROC LIFETEST and used PROC GPLOT as shown:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest data=cancer.modelone outsurv=kmgender noprint;
time duration*cancer(0);
strata sex;
symbol1 V=none color=blue line=1;
symbol2 v=none color=red line=2;
title1 font="Arial 11pt" Height=1 Bold 'KM Curve by Sex';
run;

goption reset=all ftext=simplex;
symbol1 line=1 color=blue i=stepj;
symbol2 line=1 color=red i=stepj;
axis1 label=(angle=90 'Survival Probability') order=(0.70 to 1 by .02);
axis2 label=('Time to Cancer Diagnosis (days)') order=(0 to 7875 by 1125);

proc gplot data=cancer.kmgender;
plot survival*duration=sex /vaxis=axis1 haxis=axis2;
title 'Kaplan-Meier Curve by Sex';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What would the syntax look like with the LOESS statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:10:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520561#M4050</guid>
      <dc:creator>TL93</dc:creator>
      <dc:date>2018-12-11T21:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can you smooth a Kaplan-Meier curve in SAS?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520572#M4051</link>
      <description>I'm not familiar with GPLOT, but the LOESS examples are here: &lt;BR /&gt;&lt;A href="https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0e254y1nmv2fjn1t3jybtamodjp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n164hcka7zsw9on1s2w0kb44tnf1" target="_blank"&gt;https://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0e254y1nmv2fjn1t3jybtamodjp.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n164hcka7zsw9on1s2w0kb44tnf1&lt;/A&gt;</description>
      <pubDate>Tue, 11 Dec 2018 21:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Can-you-smooth-a-Kaplan-Meier-curve-in-SAS/m-p/520572#M4051</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-11T21:21:48Z</dc:date>
    </item>
  </channel>
</rss>

