<?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: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237260#M12578</link>
    <description>&lt;P&gt;If you want the cumulative survial rate (not the probability) then you just take -Log(S(t)), where S is the Kaplan Meier curve. Confidence intervals is found just be use same transformation of the confidence intervals of the Kaplan Meier curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, you can get it directly from proc phreg:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data simulation;
  do i=1 to 1000;
    t=rand('exponential',10);
    c=rand('exponential',10);
	event=(t&amp;lt;c);
	t=min(t,c);
	output;
  end;
run;
proc phreg data=simulation;
  model t*event(0)=;
  baseline out=out cumhaz=cumhaz lowercumhaz=lower uppercumhaz=upper;
ruN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and, if you want to pick out the function as a specific time-point you can do by find the last observation in the "out" dataset before (or at) the timepoint you are interested. Like in my suggestion above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by the way, it is not so easy to find the median survival point if you have censoring. In that case you may need to assume some distribution of the survival time (weibull for instance) and then use proc lifereg to estimate the parameters. Afterward you can calculate median from the estimated parameters.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 21:16:50 GMT</pubDate>
    <dc:creator>JacobSimonsen</dc:creator>
    <dc:date>2015-12-01T21:16:50Z</dc:date>
    <item>
      <title>Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237049#M12563</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I have a simple proc lifetest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;lifetest&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;=d4 &lt;SPAN class="s2"&gt;atrisk&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;plots&lt;/SPAN&gt;=survival( &lt;SPAN class="s2"&gt;f&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;atrisk&lt;/SPAN&gt; (atrisktickonly &lt;SPAN class="s2"&gt;outside&lt;/SPAN&gt;) &lt;SPAN class="s2"&gt;test&lt;/SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;) &lt;SPAN class="s2"&gt;notable&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P class="p2"&gt;strata&lt;SPAN class="s3"&gt;&amp;nbsp;status;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;time&lt;/SPAN&gt;&amp;nbsp;Year*esldnum(&lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;);&lt;/P&gt;
&lt;P class="p3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN class="s3"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;How can I estimate&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;1- The Cumulative rate and CI at a certain time point (t)&lt;/P&gt;
&lt;P class="p3"&gt;2- The total person-year follow up time for each strata?&lt;/P&gt;
&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;Kind regards&lt;/P&gt;
&lt;P class="p3"&gt;Am&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2015 21:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237049#M12563</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2015-11-30T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237091#M12566</link>
      <description>&lt;P&gt;1- From the manual : &amp;nbsp;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;lifetest&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;data&lt;/SPAN&gt;&lt;SPAN&gt;=d4 &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;atrisk&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;notable&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;TIMELIST=&lt;EM&gt;t&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp; ... ;&lt;/P&gt;
&lt;P&gt;2- proc sql; select status, sum(year) as totalFollowUpYears from D4 group by status; quit;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 02:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237091#M12566</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-01T02:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237140#M12568</link>
      <description>Agree...except that the confidence intervals are not shown by adding "timelist=". Only the estimated survival probability at time=t is shown.&lt;BR /&gt;&lt;BR /&gt;Alternative, the survival probability and confidence intervals can be read from the dataset with the survival curve: (t=5 here).&lt;BR /&gt;&lt;BR /&gt;proc lifetest data=d4 outsurv=outsurv;&lt;BR /&gt;strata status;&lt;BR /&gt;time Year*esldnum(0);&lt;BR /&gt;run;&lt;BR /&gt;data pointestimate;&lt;BR /&gt;set outsurv(where=(t&amp;lt;5));&lt;BR /&gt;by status;&lt;BR /&gt;if last.status;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237140#M12568</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-12-01T10:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237255#M12575</link>
      <description>&lt;P&gt;Thank you all&lt;/P&gt;
&lt;P&gt;I think what I would get from these analysis is the cumulative survival&lt;/P&gt;
&lt;P&gt;What I am actually interested in is the cumulative hazard rate at the a certain time point (the median survival point)&lt;/P&gt;
&lt;P&gt;Wouls appreciate any help with that&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 20:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237255#M12575</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2015-12-01T20:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237258#M12576</link>
      <description>&lt;P&gt;Hazard estimates are only provided with the life table method in the OUTSURV= dataset.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 20:45:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237258#M12576</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-12-01T20:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237259#M12577</link>
      <description>&lt;P&gt;Thanks again&lt;/P&gt;
&lt;P&gt;The Outsurv tables provides "Survival Distribution Function Estimate", and that is not the cumulative hazards&lt;/P&gt;
&lt;P&gt;Could anyone please comment on how to get the cumulative hazards at a certain time point and their confidence interval (at that time point)&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237259#M12577</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2015-12-01T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237260#M12578</link>
      <description>&lt;P&gt;If you want the cumulative survial rate (not the probability) then you just take -Log(S(t)), where S is the Kaplan Meier curve. Confidence intervals is found just be use same transformation of the confidence intervals of the Kaplan Meier curve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, you can get it directly from proc phreg:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data simulation;
  do i=1 to 1000;
    t=rand('exponential',10);
    c=rand('exponential',10);
	event=(t&amp;lt;c);
	t=min(t,c);
	output;
  end;
run;
proc phreg data=simulation;
  model t*event(0)=;
  baseline out=out cumhaz=cumhaz lowercumhaz=lower uppercumhaz=upper;
ruN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and, if you want to pick out the function as a specific time-point you can do by find the last observation in the "out" dataset before (or at) the timepoint you are interested. Like in my suggestion above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by the way, it is not so easy to find the median survival point if you have censoring. In that case you may need to assume some distribution of the survival time (weibull for instance) and then use proc lifereg to estimate the parameters. Afterward you can calculate median from the estimated parameters.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237260#M12578</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-12-01T21:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237268#M12580</link>
      <description>&lt;P&gt;Thank you JacobSimonsen&lt;/P&gt;
&lt;P&gt;Very nice suggession&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried a different approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output productlimitestimates=naout;
proc lifetest data=d4 nelson ;
strata group;
time time*event(0);
run;&lt;BR /&gt;
proc sort data=naout (where=(cumhaz ne .)); &lt;BR /&gt;by group time ; &lt;BR /&gt;run;

data naout2;
set naout;
LowerCIFailure=failure-1.96*StdErr;
UpperCIFailure=failure+1.96*StdErr;
LowerCICumHaz=CumHaz-1.96*StdErrCumHaz;
UpperCICumHaz=CumHaz+1.96*StdErrCumHaz;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Interestingly this produces the exact cum hazards estimates as the ones from proc phreg as you suggested&lt;/P&gt;
&lt;P&gt;But the 95% confidence intervals are different, so I mudt have calculated it worngly&lt;/P&gt;
&lt;P&gt;Any suggession is appreciated&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 22:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237268#M12580</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2015-12-01T22:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237269#M12581</link>
      <description>I dont think you calculated it wrong. Your method can be asymptotical equivalent to what phreg produce. I think phreg cumputes the limits on some transformation of the cumulative hazard, which then is transformed back.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, it is not mentioned in the documentation how the limits of the cumulative hazard is computed. But I guess that it is calculated as -log() to the limits of S(t), and these limits are calculated on the log(S(t)) scale by default.</description>
      <pubDate>Tue, 01 Dec 2015 22:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237269#M12581</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-12-01T22:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237964#M12604</link>
      <description>&lt;P&gt;I would appreciate if there is a way to programmatically calculate the confidence interval for failure using the lifetest procedure. THe option outsurv gives the confidence interval table for survival only and not for failure&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 18:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237964#M12604</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2015-12-05T18:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating the cumulative rate and CI at a certain time point from a Kaplan Meier</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237973#M12605</link>
      <description>&lt;P&gt;since probability of failure is just 1-survial, you can calculate confidence limits for failure from the confidence limits of survival.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outsurv=outsurv;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data outsurv;&lt;BR /&gt;&amp;nbsp; set outsurv;&lt;BR /&gt;&amp;nbsp; failure=1-survival;&lt;BR /&gt;&amp;nbsp; failure_lower=1-sdf_ucl;&lt;BR /&gt;&amp;nbsp; failure_upper=1-sdf_lcl;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Dec 2015 20:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-the-cumulative-rate-and-CI-at-a-certain-time-point/m-p/237973#M12605</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-12-05T20:24:03Z</dc:date>
    </item>
  </channel>
</rss>

