<?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 Hazard curves using proc phreg? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175739#M9078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to plot hazard curves using proc phreg. I know proc lifetest is capable of this, but i need the 'entry=' option (for left-truncated data) which is provided only by proc phreg. Is there anyway I can get the hazard function using phreg (smoothed if possible)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2014 10:44:55 GMT</pubDate>
    <dc:creator>nchesnaye</dc:creator>
    <dc:date>2014-08-26T10:44:55Z</dc:date>
    <item>
      <title>Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175739#M9078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to plot hazard curves using proc phreg. I know proc lifetest is capable of this, but i need the 'entry=' option (for left-truncated data) which is provided only by proc phreg. Is there anyway I can get the hazard function using phreg (smoothed if possible)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 10:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175739#M9078</guid>
      <dc:creator>nchesnaye</dc:creator>
      <dc:date>2014-08-26T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175740#M9079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid you need to save the data , and plot it by proc gplot , here is an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc phreg data=hero ;
model time*status(0)=prison dose / rl ;
strata clinic ;
baseline out=phout loglogs=lls /method=ch ;
run;

proc gplot data=phout ;
 plot lls*time=clinic ;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 12:23:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175740#M9079</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-08-26T12:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175741#M9080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Your syntax provides the log of negative log of survival, which looks very much like the cumulative hazard. What I need though is to plot the 'instantaneous' hazard against time. In other words, the risk of the event occuring / hazard rate / failure rate at any given time. I am also not sure how to translate the log of negative log of survival scale to hazard on the y-axis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 12:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175741#M9080</guid>
      <dc:creator>nchesnaye</dc:creator>
      <dc:date>2014-08-26T12:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175742#M9081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to get the smoothed hazard-function directly out of phreg. It can be that you can use some kernel smoothing technique to smooth the increments of the cumulated hazard function, but in that case it will be difficult to get confidence intervals of the hazard-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the hazard-function is the main goal of the analysis then I will suggest you to use an accelerated failure time model instead (with PROC LIFEREG), where you can get a hazard-function with a full parametric form.&lt;/P&gt;&lt;P&gt;Or alternative, you can assume piecewise constant hazard-rates and perform a poisson-regression with proc genmod. Here the hazard-function will also have a full parametric form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 13:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175742#M9081</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-08-26T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175743#M9082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;An example of a kernel smoother to get the hazard function;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*simulate a dataset with survivial times; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*the baseline hazard, lamda0, is t+1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data simulation2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; call streaminit(1234567);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; do i=1 to 10000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; x=(i&amp;gt;5000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; censur_time=-2*log(rand('uniform',0,1));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventt=sqrt(-2*log(rand('uniform',0,1))/(exp(x*0.25)) +1)-1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; event=(eventt&amp;lt;censur_time);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t=min(eventt,censur_time);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; keep t&amp;nbsp; x event ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc phreg data=simulation2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; class x(ref="0")/param=ref;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; model t*event(0)=x;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; baseline out=baseline&amp;nbsp; cumhaz=cumhaz;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*from the cumulated baseline I smooth out the increments to get an estimate of the hazard-function itself;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*here I calculate the increments;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data baseline2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; set baseline;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; retain last;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; delta=cumhaz-last;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; last=cumhaz;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; keep t delta;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*delta = length of the interval over which average is taken;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*dellta should be choosen larger if you have a longer time scale;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;%let delta=0.1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*Here construct a dataset of time-values where the estimated hazardfunction will be calculated;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data template;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; do t=0.01 to 2 by 0.01;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*Here I smooth out the increments;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*the kernel function I use is the triangulare function;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*Notice, I have not taken care of the boundary problem at zero. therefore I dont estimate lambda(t) for t&amp;lt;&amp;amp;delta.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc fcmp outlib=work.function.kernel;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; function k(t);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; k= (-t**2+1)*3/4;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *k= 1-abs(t);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; return (k);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; endsub;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;option cmplib=(work.function);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;data smoother;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; set baseline2(in=a keep=t) template(in=b );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; by t;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; retain dsid;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; if _N_=1 then do;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obsid=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dsid=open('baseline2');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; if a then obsid+1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; if b;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; *forward;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; hazard=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; obsid=max(obsid,1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; do i=obsid to attrn(dsid,'nobs') until (runningt&amp;gt;t+&amp;amp;delta.);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs=fetchobs(dsid,i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; runningt=getvarn(dsid,1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta=getvarn(dsid,2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; * put 'a' i= runningt=;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t-&amp;amp;delta.&amp;lt;runningt&amp;lt;t+&amp;amp;delta. then do;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t&amp;gt;=&amp;amp;delta. then hazard+delta*k((t-runningt)/&amp;amp;delta.)/&amp;amp;delta.; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; else if runningt&amp;lt;2*t then hazard+delta*k((t-runningt)/t)/t;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; *output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; *backward;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; do i=obsid-1 to 1 by -1 until (runningt&amp;lt;t-&amp;amp;delta.);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *put i=;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *put 'b' i= runningt=;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obs=fetchobs(dsid,i);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; runningt=getvarn(dsid,1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; delta=getvarn(dsid,2);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; if runningt=0 then delta=0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t-&amp;amp;delta.&amp;lt;runningt&amp;lt;t+&amp;amp;delta. then do;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if t&amp;gt;=&amp;amp;delta. then hazard+delta*k((t-runningt)/&amp;amp;delta.)/&amp;amp;delta.; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; else if runningt&amp;lt;2*t then hazard+delta*k((t-runningt)/t)/t;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; *output;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; end;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; true_lambda0=(t+1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*then it has to be plotted;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;symbol1 i=join v=none;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;symbol2 i=join v=none;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;proc gplot data=smoother;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; plot (hazard true_lambda0)*t/overlay;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed a bit: a function now defines the kernel smoother, I use the Epanechnikov, and uncommented the Triangular kernel. Further, I changed the bandwidth for t close to zero, such the smoother now can start at zero instead.&#xD;
Message was edited by: Jacob Simonsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 07:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175743#M9082</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-08-27T07:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175744#M9083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I played around a bit to get the right bandwidth and now it's perfect! Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 07:44:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175744#M9083</guid>
      <dc:creator>nchesnaye</dc:creator>
      <dc:date>2014-08-27T07:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175745#M9084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need then you have here the reference for the applied techique:&lt;/P&gt;&lt;P&gt;&lt;SPAN id="dynamic_citation"&gt;Ramlau-Hansen, Henrik. Smoothing Counting Process Intensities by Means of Kernel Functions.&amp;nbsp; The Annals of Statistics 11 (1983), no. 2, 453--466.&lt;/SPAN&gt; doi:10.1214/aos/1176346152.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://projecteuclid.org/euclid.aos/1176346152"&gt;http://projecteuclid.org/euclid.aos/1176346152&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 15:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175745#M9084</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2014-09-18T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard curves using proc phreg?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175746#M9085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wrote a macro called SMOOTH that implements this method.&amp;nbsp; It can be downloaded at &lt;A href="http://www.statisticalhorizons.com/resources/macros"&gt;http://www.statisticalhorizons.com/resources/macros&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 17:32:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-curves-using-proc-phreg/m-p/175746#M9085</guid>
      <dc:creator>pauldallison</dc:creator>
      <dc:date>2014-09-18T17:32:13Z</dc:date>
    </item>
  </channel>
</rss>

