<?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: First time Making Kaplan Meier Curve- not sure if done correctly in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500730#M389</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237382"&gt;@hpatel3&lt;/a&gt;, this article by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;, &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_self"&gt;Kaplan-Meier Survival Plotting Macro %NEWSURV&lt;/A&gt;, and &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;items in this user's guide&lt;/A&gt; may be useful.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;, anything you'd add?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 13:40:08 GMT</pubDate>
    <dc:creator>BeverlyBrown</dc:creator>
    <dc:date>2018-10-02T13:40:08Z</dc:date>
    <item>
      <title>First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500379#M319</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've received my first project at work to&amp;nbsp; make a Kaplan Meier curve. The question is " 5 &amp;amp; 10 year survival" for EndStage Heart Failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The categories given to me are:&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;MRN&lt;/P&gt;&lt;P&gt;Gender&lt;/P&gt;&lt;P&gt;DOB&lt;/P&gt;&lt;P&gt;Date EndStage&lt;/P&gt;&lt;P&gt;Death=1, Alive at last Follow Up=0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; [I made this my status variable and labeled it "Status" in my dataset]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date of Last Visit&lt;/P&gt;&lt;P&gt;FU ES&lt;/P&gt;&lt;P&gt;Date Death&lt;/P&gt;&lt;P&gt;Adverse events prior to ES&lt;/P&gt;&lt;P&gt;time to nonfatal adverse event&lt;/P&gt;&lt;P&gt;Time transplant to Death&lt;/P&gt;&lt;P&gt;Time of Follow-up or to death&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; [I made this my time variable and labeled it "FU_ES" in my dataset]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Date of last visit, living&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Hetal &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\tuftsmc\home\hpatel3\SAS Datasets"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=hetal.ES_database &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datafile&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"\\tuftsmc\home\hpatel3\SAS Datasets\ES Database Edit.csv"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=csv &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;replace&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;getnames&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=yes; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;datarow&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;graphics&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;on&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;lifetest&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=hetal.es_database &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;conftype&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=loglog plot=(s) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;plots&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(survival(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;atrisk&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; to &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; by &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;test&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;time&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; FU_ES*Status(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;survival&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; out=survci;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Title&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;" 5 &amp;amp; 10 year Survival for ES"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have absolutely no idea if I've done this correctly. Is the atrisk correct?&amp;nbsp;Does the Product Limit Survival Estimate look...ok?&amp;nbsp;is there only a 25% Quartile for the 95%&amp;nbsp;CI because of the censored variables? HELP. Also attaching my results.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Oct 2018 13:59:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500379#M319</guid>
      <dc:creator>hpatel3</dc:creator>
      <dc:date>2018-10-01T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500730#M389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237382"&gt;@hpatel3&lt;/a&gt;, this article by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;, &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Kaplan-Meier-Survival-Plotting-Macro-NEWSURV/ta-p/479747" target="_self"&gt;Kaplan-Meier Survival Plotting Macro %NEWSURV&lt;/A&gt;, and &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_kaplan_toc.htm&amp;amp;docsetVersion=14.3&amp;amp;locale=en" target="_self"&gt;items in this user's guide&lt;/A&gt; may be useful.&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16777"&gt;@WarrenKuhfeld&lt;/a&gt;, anything you'd add?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500730#M389</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2018-10-02T13:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500732#M390</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34537"&gt;@BeverlyBrown&lt;/a&gt;, does that mean I've done my graph wrong? Thank you for the extra resources, I'll definitely be perusing them! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500732#M390</guid>
      <dc:creator>hpatel3</dc:creator>
      <dc:date>2018-10-02T13:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500737#M391</link>
      <description>&lt;P&gt;Oh, you wouldn't want me critiquing your graph! I'm a resource finder/connector, which is why I replied with links to docs and tagged Jeff and Warren. Hoping one of them or another expert will reply shortly.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500737#M391</guid>
      <dc:creator>BeverlyBrown</dc:creator>
      <dc:date>2018-10-02T13:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500762#M397</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was tagged in this conversation so I thought I'd chip in here.&amp;nbsp; Your code is mostly correct, but if you're trying to find the 5 and 10 year survival rates then I would change it to be this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;lifetest&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT size="3" face="Courier New" color="#0000ff"&gt;data&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;=hetal.es_database &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;conftype&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;=loglog plot=(s) &lt;/FONT&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;plots&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;=(survival&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;&amp;nbsp;&amp;nbsp; TIMELIST=5 10 outs=survival_rates reduceout;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#0000ff"&gt;time&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt; FU_ES*Status(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="3" face="Courier New"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="3" face="Courier New"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;This will give you a dataset (survival_rates) that has the 5 and 10 year (assuming your time variable is in years) estimates and confidence bounds.&amp;nbsp; If your time scale is not in years you will have to convert it before using proc lifetest.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;The reason the medians (or confidence bounds) might not be evaluable is that the curve needs to cross the 50% survival threshold to have a median.&amp;nbsp; The curve's upper CI bound has to cross 50% survival for the median's upper ci and the curve's lower CI bound has to cross 50% survival for the median's lower ci.&amp;nbsp; Your curve just barely clips through the 50% survival so it wouldn't be able to have the 75% quartile nor the upper ci for your median.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;If you want to run NEWSURV to give you the curve with the estimates in the graph you would use the following macro call (after initializing the macro code):&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;%newsurv(data=hetal.es_database,time=FU_ES,cens=Status,cen_vl=&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;0,summary=0, timelist=5 10, timedx=years);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" face="Courier New"&gt;&lt;STRONG&gt;&lt;FONT size="3" face="Courier New" color="#008080"&gt;The macro defaults to loglog for confidence interval type so you wouldn't have to worry about that.&amp;nbsp; You could add in ylabel and xlabel options to change those.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 14:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500762#M397</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-10-02T14:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500866#M415</link>
      <description>Every thing I know about the KM plot, I put in that chapter.  On the road now without computer access.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Oct 2018 17:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500866#M415</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2018-10-02T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500879#M416</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;Alright, Timelist worked great and I got my rates. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My other question is, if I want to format my graph (remove the tick marks completely, remove the x-axis label completely, label the y-axis, make it "journal" quality, etc) --is there a data step within proc lifetest that will do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm familiar with just using proc sgplot to define the characteristics of my graph, is there anything similar to it that isn't macro (it seems to be not reading correctly for me)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXAMPLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PROC sgplot ex.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23726i33A5A928C66B721C/image-size/large?v=v2&amp;amp;px=999" role="button" title="PROC sgplot ex.PNG" alt="PROC sgplot ex.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500879#M416</guid>
      <dc:creator>hpatel3</dc:creator>
      <dc:date>2018-10-02T18:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500883#M418</link>
      <description>&lt;P&gt;I think Warren has some macros to modify the template for the LIFETEST procedure, but in all honesty it'll probably be faster if you just output the plot dataset and make your own SGPLOT.&lt;BR /&gt;&lt;BR /&gt;ODS OUTPUT SURVIVALPLOT=survplot;&lt;BR /&gt;PROC LIFETEST....&lt;BR /&gt;**Your code here**&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;If you have ODS graphics on, then the dataset that LIFETEST uses to make the graph will be saved into the dataset survplot, which you can then feed into SGPLOT to make it look as you wish.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500883#M418</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-10-02T18:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500926#M424</link>
      <description>&lt;P&gt;I have my ODS graphics on, and my Looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgplot.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23731iB149138965884B30/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgplot.PNG" alt="sgplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the results I'm getting are, unfortunately, what I've been getting all day.&amp;nbsp;My SGPlot looks nothing like my survival plot, I feel like I'm missing some silly step in the middle that gives me the data.&amp;nbsp; If I Can just get my data to show up on here like it does in my Proc Test,&amp;nbsp; I think I'll be golden for moving forward on the rest of my similar projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sgplot.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23728iA0448837D109BBA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="sgplot.PNG" alt="sgplot.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:22:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500926#M424</guid>
      <dc:creator>hpatel3</dc:creator>
      <dc:date>2018-10-02T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500957#M430</link>
      <description>Your SGPLOT is referring to your original data instead of the survplot dataset.  Your original data doesn't have any survival calculations.  You need to use the dataset that came from lifetest (survplot) with its variables to recreate the survival plot.</description>
      <pubDate>Tue, 02 Oct 2018 20:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500957#M430</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-10-02T20:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: First time Making Kaplan Meier Curve- not sure if done correctly</title>
      <link>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500959#M431</link>
      <description>&lt;P&gt;Here's an example using the sashelp.bmt dataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods output survivalplot=survplot;
proc lifetest data=sashelp.bmt;
  time t*status(0);
run;

 ods graphics / reset;
proc sgplot data=survplot;
   step x=time y=survival / lineattrs=(color=black pattern=1);
   scatter x=time y=censored / markerattrs=(symbol=plus color=black);
   xaxis min=0 max=2000 values=(0 to 2000 by 200);
   yaxis min=0 max=1 values=(0 to 1 by 0.1);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Oct 2018 20:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/First-time-Making-Kaplan-Meier-Curve-not-sure-if-done-correctly/m-p/500959#M431</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-10-02T20:47:03Z</dc:date>
    </item>
  </channel>
</rss>

