<?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: Difficulties using the %newsurv macro with my own data in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493694#M16902</link>
    <description>Thank you for the kind accolades.  I wrote the macro for the same reasons you listed, and it has been great resource within our cancer center at Mayo Clinic.  Look forward to hearing from you in the future.</description>
    <pubDate>Fri, 07 Sep 2018 23:55:54 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2018-09-07T23:55:54Z</dc:date>
    <item>
      <title>Difficulties using the %newsurv macro with my own data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493676#M16899</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a novice SAS user who has not used macros in the past and feel a bit in over my head at this point. Essentially I am trying to produce a KM curve for overall survival across different classes of a large cohort of cancer patients using the %newsurv macro. When I stumbled across %newsurv while trying to read up on customizing survival curves in SAS, it seemed to be hugely useful so I thought Id try it out, but I have a feeling I am oversimplifying this whole process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus far;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I produced a normal KM curve using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest plot=survival(nocensor atrisk) conftype=linear ;&lt;BR /&gt;time survtime*vitalstatus(1);&lt;BR /&gt;strata nodalgroup;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then tried to apply %newsurv by downloading Newsurv_08012016.sas and running the program/code to call in the macro. I did this in a separate window and didn't think that changed anything but let me know if it does;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, to apply it to my data, I used the code:&lt;/P&gt;&lt;P&gt;%newsurv (Data=micromets, time=survtime, cens=vitalstatus, cen_vl=1, class nodalgroup);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I highlight this and click run, nothing really happens. It states "ERROR: All positional parameters must precede keyword parameters."&amp;nbsp; I know I'm falling short somewhere, but really just scratching my head trying to figure out these first few steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance with this would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;- S&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 22:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493676#M16899</guid>
      <dc:creator>sw930</dc:creator>
      <dc:date>2018-09-07T22:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulties using the %newsurv macro with my own data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493690#M16900</link>
      <description>Hello,
   That is actually my macro.  If you have any questions on using it feel free to e-mail me directly (jpmeyers.spa@gmail.com).  The issue is you don't have an equal sign between class and your variable name.</description>
      <pubDate>Fri, 07 Sep 2018 23:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493690#M16900</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-09-07T23:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulties using the %newsurv macro with my own data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493692#M16901</link>
      <description>&lt;P&gt;Wow. That simple? Apparently.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jeff Meyer, I feel like I need to acknowledge you now in every manuscript I write going forward. This is an incredibly practical and helpful macro to have for clinical researchers, and I just want to thank you so much for publishing it. I feel like this will take hours off of those painful evenings I spend combining and annotating my SAS figures in photoshop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll be in touch if I have any other questions while I try to iron out the more extensive code over the next few days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerest thanks again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2018 23:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493692#M16901</guid>
      <dc:creator>sw930</dc:creator>
      <dc:date>2018-09-07T23:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulties using the %newsurv macro with my own data</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493694#M16902</link>
      <description>Thank you for the kind accolades.  I wrote the macro for the same reasons you listed, and it has been great resource within our cancer center at Mayo Clinic.  Look forward to hearing from you in the future.</description>
      <pubDate>Fri, 07 Sep 2018 23:55:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Difficulties-using-the-newsurv-macro-with-my-own-data/m-p/493694#M16902</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-09-07T23:55:54Z</dc:date>
    </item>
  </channel>
</rss>

