<?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: Proc LIFETEST - Kernel smoothing for Kaplan Meier in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563786#M27840</link>
    <description>Can you use the output from LIFETEST and pass that to another proc to generate a smooth curve? Though I wonder if you shouldn't be using LIFEREG if you need a smooth curve. It's more normal to use a step curve for survival graphs than smoothed graphs. SAS can generate pretty complicated graphics these days so I'm a bit surprised you couldn't get what you need though it's definitely more work than a point and click software. Though the benefit of code is always, if it needs to be repeated you save the time :).&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jun 2019 17:32:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-06-05T17:32:59Z</dc:date>
    <item>
      <title>Proc LIFETEST - Kernel smoothing for Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563782#M27839</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;We are using Kaplan Meier method to model bridge deterioration. What I exactly want is to get smoothed curve output for survival and deterioration as an output in order to prepare graphs in graphing software. I could not generate nice survival plots using SAS. I know smoothed curves for other methods in proc LIFETEST are available, but not available for Kaplan Meier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone give me a link to a macro or write me a macro to output the Kernel smoothed curve for Kaplan Meier data points?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563782#M27839</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2019-06-05T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LIFETEST - Kernel smoothing for Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563786#M27840</link>
      <description>Can you use the output from LIFETEST and pass that to another proc to generate a smooth curve? Though I wonder if you shouldn't be using LIFEREG if you need a smooth curve. It's more normal to use a step curve for survival graphs than smoothed graphs. SAS can generate pretty complicated graphics these days so I'm a bit surprised you couldn't get what you need though it's definitely more work than a point and click software. Though the benefit of code is always, if it needs to be repeated you save the time :).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563786#M27840</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-05T17:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LIFETEST - Kernel smoothing for Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563807#M27841</link>
      <description>&lt;P&gt;Please provide the code you are using. If you can provide sample data, that's even better.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563807#M27841</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-05T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LIFETEST - Kernel smoothing for Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563874#M27842</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; for your time and interest to help.&lt;/P&gt;&lt;P&gt;The following is the code i am using.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
proc LIFETEST method=km data=xx.WI_nbi_psc_super_ticr plots=s(cb=ep)OUTSURV=xx.PSC_Survival;* (atrisk);
TIME count*CENSOR(0);
strata SUPERSTRUCTURE_COND_059;
label count="Time in Condition Rating (Year)";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The data file I used in the above code is attached. The code output and graphs are attached too. I want to smooth the step curves using Kernel smoothing method and have it as an output similar to the code output and possibly overlay it on the graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Survival Output.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30020i173F7C53F7647168/image-size/large?v=v2&amp;amp;px=999" role="button" title="Survival Output.JPG" alt="Survival Output.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 20:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/563874#M27842</guid>
      <dc:creator>mmhxc5</dc:creator>
      <dc:date>2019-06-05T20:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LIFETEST - Kernel smoothing for Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/564642#M27855</link>
      <description>&lt;P&gt;Although it is possible to apply a smoother to the points in the K-M graph, I don't recommend it.&amp;nbsp;Smoothers are based on nonparametric regression methods that assume a relationship between the X and Y variables. The predicted values and confidence intervals for a smoother are based on assumptions that probably do not hold for the K-M points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you decide to proceed anyway, you can use the LOESS or PBSPLINE statements in PROC SGPLOT to overlay a smoother on the data. For example, here is a PBSPLINE smoother:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc lifetest method=km data=sashelp.BMT plots=s(cb=ep) OUTSURV=PSC_Survival;
   time T * Status(0);
   strata Group;
run;

proc sort data=PSC_Survival;
by Group T;
run;

proc sgplot data=PSC_Survival;
band x=T lower=SDF_LCL upper=SDF_UCL / group=Group transparency=0.6;
pbspline x=T y=Survival / group=Group;  /* or use LOESS */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Jun 2019 10:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-LIFETEST-Kernel-smoothing-for-Kaplan-Meier/m-p/564642#M27855</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-08T10:37:57Z</dc:date>
    </item>
  </channel>
</rss>

