<?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 Plotting the Nelson-Aalen estimate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51218#M2262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to plot the Nelson-Aalen estimate of the cumulative hazard function, and it's giving me some trouble. SAS references say to specify METHOD=NELSON within proc lifetest, but I can't figure out the actual line command. So here is my code, with question marks inserted about specifying the Nelson-Aalen calculation, and how to specify the graph type (I want the cumulative hazard function). Can anyone help an enthusiastic but clueless newbie? Any suggestions appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Pep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data hepatitis;&lt;BR /&gt;input dur status;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1&lt;BR /&gt;1 1&lt;BR /&gt;1 1&lt;BR /&gt;1 0&lt;BR /&gt;4 0&lt;BR /&gt;5 1&lt;BR /&gt;7 1&lt;BR /&gt;8 1&lt;BR /&gt;10 1&lt;BR /&gt;10 0&lt;BR /&gt;12 0&lt;BR /&gt;16 0&lt;BR /&gt;16 0&lt;BR /&gt;16 0&lt;BR /&gt;;&lt;BR /&gt;ods rtf;&lt;/P&gt;&lt;P&gt;proc lifetest data=hepatitis ????? plot=(????);&lt;BR /&gt;time dur*status(0);&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 02:01:42 GMT</pubDate>
    <dc:creator>Pepperoni</dc:creator>
    <dc:date>2012-02-10T02:01:42Z</dc:date>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51218#M2262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to plot the Nelson-Aalen estimate of the cumulative hazard function, and it's giving me some trouble. SAS references say to specify METHOD=NELSON within proc lifetest, but I can't figure out the actual line command. So here is my code, with question marks inserted about specifying the Nelson-Aalen calculation, and how to specify the graph type (I want the cumulative hazard function). Can anyone help an enthusiastic but clueless newbie? Any suggestions appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Pep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data hepatitis;&lt;BR /&gt;input dur status;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1&lt;BR /&gt;1 1&lt;BR /&gt;1 1&lt;BR /&gt;1 0&lt;BR /&gt;4 0&lt;BR /&gt;5 1&lt;BR /&gt;7 1&lt;BR /&gt;8 1&lt;BR /&gt;10 1&lt;BR /&gt;10 0&lt;BR /&gt;12 0&lt;BR /&gt;16 0&lt;BR /&gt;16 0&lt;BR /&gt;16 0&lt;BR /&gt;;&lt;BR /&gt;ods rtf;&lt;/P&gt;&lt;P&gt;proc lifetest data=hepatitis ????? plot=(????);&lt;BR /&gt;time dur*status(0);&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 02:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51218#M2262</guid>
      <dc:creator>Pepperoni</dc:creator>
      <dc:date>2012-02-10T02:01:42Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51219#M2263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not real sure if this is what you want, but it did run and gave a smoothed plot of the estimated hazard rate.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 10pt; font-family: Courier New;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc lifetest data=hepatitis nelson plots=h;&lt;/P&gt;&lt;P&gt;time dur*status(0);&lt;/P&gt;&lt;P&gt;ods output productlimitestimates=ple;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The dataset ple has the Nelson-Aalen estimates (along with some other stuff).&amp;nbsp; You could then plot the cumulatives using PROC SGPLOT, using the PBSPLINE option.&amp;nbsp; I am afraid that is outside my skill set, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 13:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51219#M2263</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-02-10T13:01:10Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51220#M2264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; OK, so I got the code below to give me the estimates I needed, but I still need to produce a graph of the Nelson-Aalen cumulative hazard function plotted over time. Any ideas as to which line of code could help me do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data hepatitis;&lt;/P&gt;&lt;P&gt;input dur status;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 1&lt;/P&gt;&lt;P&gt;1 0&lt;/P&gt;&lt;P&gt;4 0&lt;/P&gt;&lt;P&gt;5 1&lt;/P&gt;&lt;P&gt;7 1&lt;/P&gt;&lt;P&gt;8 1&lt;/P&gt;&lt;P&gt;10 1&lt;/P&gt;&lt;P&gt;10 0&lt;/P&gt;&lt;P&gt;12 0&lt;/P&gt;&lt;P&gt;16 0&lt;/P&gt;&lt;P&gt;16 0&lt;/P&gt;&lt;P&gt;16 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;ods rtf;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; proc lifetest data=hepatitis nelson;&lt;BR /&gt;&amp;nbsp; time dur*status(0);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;ods rtf close;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 21:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51220#M2264</guid>
      <dc:creator>Pepperoni</dc:creator>
      <dc:date>2012-02-10T21:50:38Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51221#M2265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Use the ods output statement I gave (ods output productlimitestimates=ple) to get a dataset with the cumulative hazards estimates.&amp;nbsp; Then plot it using PROC SGPLOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 13:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51221#M2265</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-02-13T13:05:01Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51222#M2266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And that would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc lifetest data=hepatitis nelson;&lt;/P&gt;&lt;P&gt;time dur*status(0);&lt;/P&gt;&lt;P&gt;ods output ProductLimitEstimates=ple;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=ple;&lt;/P&gt;&lt;P&gt;step x=dur y=cumhaz;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 17:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51222#M2266</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-02-13T17:25:53Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51223#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; And for a smoothed line rather than a step function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=ple;&lt;/P&gt;&lt;P&gt;pbspline x=dur y=cumhaz;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 18:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51223#M2267</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-02-13T18:23:50Z</dc:date>
    </item>
    <item>
      <title>Plotting the Nelson-Aalen estimate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51224#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you guys so much! This is great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 18:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plotting-the-Nelson-Aalen-estimate/m-p/51224#M2268</guid>
      <dc:creator>Pepperoni</dc:creator>
      <dc:date>2012-02-13T18:57:16Z</dc:date>
    </item>
  </channel>
</rss>

