<?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: proc lifetest - 95% CI for failure rate in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700912#M33817</link>
    <description>&lt;P&gt;Add an OUTSURV= &amp;lt;data set name&amp;gt; to your PROC LIFETEST statement.&amp;nbsp; It will contain confidence bounds for each strata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2020 14:26:40 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2020-11-23T14:26:40Z</dc:date>
    <item>
      <title>proc lifetest - 95% CI for failure rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700782#M33809</link>
      <description>&lt;P&gt;I would like to get 95% confidence interval for failure rate - an example would be perfect!&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2020 20:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700782#M33809</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2020-11-22T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest - 95% CI for failure rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700912#M33817</link>
      <description>&lt;P&gt;Add an OUTSURV= &amp;lt;data set name&amp;gt; to your PROC LIFETEST statement.&amp;nbsp; It will contain confidence bounds for each strata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700912#M33817</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-11-23T14:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest - 95% CI for failure rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700924#M33820</link>
      <description>Hi Steve,&lt;BR /&gt;Thank you for your response - but, using OUTSURV dataset gives CL for survival estimates not failure.&lt;BR /&gt;&lt;BR /&gt;I believe using 'plots=survival(failure cl)' in the lifetest statement and 'failureplot=want' in the ods output statement does give CL for failure but the issue is interpretation: Here is a sample row from the 'want' dataset - &lt;BR /&gt;&lt;BR /&gt;I have split one row from the dataset in to two rows here for better reading. I believe values in _1_SDF_LCL_ and  _1_SDF_UCL_ represent 95% CL for failure rates but the labels are switched? (Because _1_SDF_LCL_ &amp;gt; _1_SDF_UCL_ )&lt;BR /&gt;&lt;BR /&gt;Question: Not sure why this is happening. Is it safe to assume _1_SDF_LCL_ is indeed UCL for failure rate and _1_SDF_UCL_ is in fact LCL?&lt;BR /&gt;&lt;BR /&gt;STRATUM	Time	SDF_LCL	SDF_UCL	Survival	  AtRisk	  Event	  Censored&lt;BR /&gt;1	             0.72279	 0.97752	         0.99270	        0.98717	    918	   1	              .&lt;BR /&gt;&lt;BR /&gt;StratumNum	_1_SDF_LCL_	_1_SDF_UCL_	_1_SURVIVAL_	_1_CENSORED_&lt;BR /&gt;1	                     0.022476	          .007304630	             0.012827	                    .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Nov 2020 14:54:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/700924#M33820</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2020-11-23T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: proc lifetest - 95% CI for failure rate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/701029#M33824</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/57910"&gt;@kc&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/57910"&gt;@kc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;... but, using OUTSURV dataset gives CL for survival estimates not failure.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, but you can calculate one from the other: &lt;EM&gt;failure rate&lt;/EM&gt; = 1&amp;nbsp;− &lt;EM&gt;survival rate&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/57910"&gt;@kc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I believe values in _1_SDF_LCL_ and _1_SDF_UCL_ represent 95% CL for failure rates but the labels are switched? (Because _1_SDF_LCL_ &amp;gt; _1_SDF_UCL_ )&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The variable names are correct (and the variable &lt;EM&gt;labels&lt;/EM&gt; "&lt;FONT face="courier new,courier"&gt;1-SDF_LCL&lt;/FONT&gt;" and "&lt;FONT face="courier new,courier"&gt;1-SDF_UCL&lt;/FONT&gt;" are even clearer).&amp;nbsp;As a consequence of the above relationship between the two rates, the LCL of the &lt;EM&gt;failure rate&lt;/EM&gt; equals&amp;nbsp;1&amp;nbsp;− the &lt;STRONG&gt;U&lt;/STRONG&gt;CL of the&amp;nbsp;&lt;EM&gt;survival rate&lt;/EM&gt;&amp;nbsp;and the&amp;nbsp;UCL of the &lt;EM&gt;failure rate&lt;/EM&gt; equals&amp;nbsp;1&amp;nbsp;− the &lt;STRONG&gt;L&lt;/STRONG&gt;CL of the&amp;nbsp;&lt;EM&gt;survival rate. &lt;/EM&gt;The&amp;nbsp;&lt;EM&gt;survival rates&lt;/EM&gt;&amp;nbsp;(more precisely: &lt;EM&gt;survival probabilities&lt;/EM&gt;) are the values of the&amp;nbsp;&lt;EM&gt;&lt;U&gt;s&lt;/U&gt;urvival &lt;U&gt;d&lt;/U&gt;istribution &lt;U&gt;f&lt;/U&gt;unction&lt;/EM&gt;&amp;nbsp;&lt;EM&gt;(SDF)&lt;/EM&gt;. This also answers your next question:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/57910"&gt;@kc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Question: Not sure why this is happening. Is it safe to assume _1_SDF_LCL_ is indeed UCL for failure rate and _1_SDF_UCL_ is in fact LCL?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, you'll get the same results from the &lt;FONT face="courier new,courier"&gt;failureplot&lt;/FONT&gt; ODS output dataset as you get by simply transforming the corresponding values from the OUTSURV= dataset (that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;suggested) as described above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create test data */

data have;
call streaminit(27182818);
do id=1 to 200;
  t=ceil(rand('expo',250));
  censored=rand('bern',0.2);
  output;
end;
run;

/* Compute survival estimates */

proc lifetest data=have outsurv=os noprint;
time t*censored(1);
run;

/* Derive failure estimates */

data want;
set os;
failure=1-survival;
if _censor_ ne 1 then do;
  lcl=1-sdf_ucl;
  ucl=1-sdf_lcl;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Nov 2020 20:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-lifetest-95-CI-for-failure-rate/m-p/701029#M33824</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-11-23T20:09:32Z</dc:date>
    </item>
  </channel>
</rss>

