<?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: Kaplan meier estimated risk ratio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792346#M253847</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the Kaplan Meier estimated risk ratio (&lt;STRONG&gt;0.377&lt;/STRONG&gt;) from the &lt;STRONG&gt;Product-Limit Survival Estimates of Treatment &amp;amp; placebo&lt;/STRONG&gt;&amp;nbsp;by dividing the failure rate of the treatment group by the&amp;nbsp;failure rate of the placebo group and subtract the result from 1 i.e., (1-failure rate treatment / failure rate Placebo).&lt;/P&gt;&lt;P&gt;So my first questions is cant SAS do it for me without me manually doing the division and subtraction for the proportion? This is my code that produces the&amp;nbsp;Product-Limit Survival Estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=a ;&lt;BR /&gt;time specimen*censor6(0);&lt;BR /&gt;strata pp/TEST;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question is how do I calculate the &lt;STRONG&gt;p-value&lt;/STRONG&gt; and &lt;STRONG&gt;confidence Interval&lt;/STRONG&gt; just like in the table table, I have tried to add (TEST function for p-value of a homogeneity test specified in the STRATA statement but I didn't get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 25 Jan 2022 23:08:58 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2022-01-25T23:08:58Z</dc:date>
    <item>
      <title>Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791265#M253411</link>
      <description>&lt;P&gt;I am stocked with a KM estimated risk ratio, hazard ratio, adjusted hazard ratio. Is there a code to analyze this estimates in sas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CathyVI_1-1642710906445.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67560i64273135FFC684B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CathyVI_1-1642710906445.png" alt="CathyVI_1-1642710906445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 20:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791265#M253411</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-01-20T20:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791270#M253412</link>
      <description>Are you sure you're asking the correct question? Can you add more details as to what you're trying to do here?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jan 2022 20:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791270#M253412</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-20T20:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791293#M253428</link>
      <description>&lt;P&gt;I know you can get hazard ratio with proc phreg.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 21:35:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/791293#M253428</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-01-20T21:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792346#M253847</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the Kaplan Meier estimated risk ratio (&lt;STRONG&gt;0.377&lt;/STRONG&gt;) from the &lt;STRONG&gt;Product-Limit Survival Estimates of Treatment &amp;amp; placebo&lt;/STRONG&gt;&amp;nbsp;by dividing the failure rate of the treatment group by the&amp;nbsp;failure rate of the placebo group and subtract the result from 1 i.e., (1-failure rate treatment / failure rate Placebo).&lt;/P&gt;&lt;P&gt;So my first questions is cant SAS do it for me without me manually doing the division and subtraction for the proportion? This is my code that produces the&amp;nbsp;Product-Limit Survival Estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=a ;&lt;BR /&gt;time specimen*censor6(0);&lt;BR /&gt;strata pp/TEST;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second question is how do I calculate the &lt;STRONG&gt;p-value&lt;/STRONG&gt; and &lt;STRONG&gt;confidence Interval&lt;/STRONG&gt; just like in the table table, I have tried to add (TEST function for p-value of a homogeneity test specified in the STRATA statement but I didn't get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792346#M253847</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-01-25T23:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792347#M253848</link>
      <description>&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d" target="_blank"&gt;https://gist.github.com/statgeek/d3bce2a9e2ef0523db9d&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have raw data and you're trying to calculate your ratios as in the first post?&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/253321"&gt;@CathyVI&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181158"&gt;@tarheel13&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got the Kaplan Meier estimated risk ratio (&lt;STRONG&gt;0.377&lt;/STRONG&gt;) from the &lt;STRONG&gt;Product-Limit Survival Estimates of Treatment &amp;amp; placebo&lt;/STRONG&gt;&amp;nbsp;by dividing the failure rate of the treatment group by the&amp;nbsp;failure rate of the placebo group and subtract the result from 1 i.e., (1-failure rate treatment / failure rate Placebo).&lt;/P&gt;
&lt;P&gt;So my first questions is cant SAS do it for me without me manually doing the division and subtraction for the proportion? This is my code that produces the&amp;nbsp;Product-Limit Survival Estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc lifetest data=a ;&lt;BR /&gt;time specimen*censor6(0);&lt;BR /&gt;strata pp/TEST;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second question is how do I calculate the &lt;STRONG&gt;p-value&lt;/STRONG&gt; and &lt;STRONG&gt;confidence Interval&lt;/STRONG&gt; just like in the table table, I have tried to add (TEST function for p-value of a homogeneity test specified in the STRATA statement but I didn't get it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792347#M253848</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-25T23:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792348#M253849</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Yes, I have a raw data but the GitHub link seems complicated for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 00:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792348#M253849</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-01-26T00:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792350#M253851</link>
      <description>Did you run it? You would need to modify where it saves the output, last parameter. &lt;BR /&gt;Run it, see if something in there is similar to what you need then figure out how you can call it for your data. &lt;BR /&gt;You're just changing the last line of code.</description>
      <pubDate>Wed, 26 Jan 2022 01:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792350#M253851</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-26T01:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792521#M253936</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I don't want the CI in percent. I want the Confidence interval and p-value of the failure rate.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792521#M253936</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-01-26T16:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792526#M253940</link>
      <description>"I got the Kaplan Meier estimated risk ratio (0.377) from the Product-Limit Survival Estimates of Treatment &amp;amp; placebo by dividing the failure rate of the treatment group by the failure rate of the placebo group and subtract the result from 1 "&lt;BR /&gt;&lt;BR /&gt;I'm not familiar with that calculation so not sure how you'd go about getting a confidence interval for it to be honest. &lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jan 2022 16:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792526#M253940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-26T16:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792557#M253949</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I saw one of your previous comment online&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-get-confidence-interval-for-failure-rate-in-proc-lifetest/td-p/261241" target="_blank"&gt;Solved: How to get confidence interval for failure rate in... - SAS Support Communities&lt;/A&gt;&amp;nbsp;and maybe you can use this comment to help me.&lt;/P&gt;&lt;P&gt;In the table above, I wanted to calculate the&amp;nbsp;&lt;STRONG&gt;Vaccine Efficacy(VE)&lt;/STRONG&gt; &lt;STRONG&gt;0.377 and its CI and P-value.&amp;nbsp;&lt;/STRONG&gt;This is the same dataset so i should get the same result.&lt;/P&gt;&lt;P&gt;I used the follow code to the get the failure rate, see table below. When I divided the failure rates(yellow highlighted) from each other I got 0.3590/0.5778 = 0.6213222568. 1-0.6213222568 = &lt;STRONG&gt;0.3786&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;which i think is the same VE result they got. How do i get this result in sas without manually calculating it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc lifetest data=a ;&lt;BR /&gt;time specimenint*censor6(0);&lt;BR /&gt;strata pp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pic1.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67856i125A3F2B8C2CEDEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pic1.png" alt="pic1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pic2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67857i10BBFECF3A25BD6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pic2.png" alt="pic2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="pic3.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67855iABD8119A1497E021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pic3.png" alt="pic3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 17:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792557#M253949</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-01-26T17:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Kaplan meier estimated risk ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792562#M253951</link>
      <description>You can estimates for a specific time point. Was there something in the experimental design about the time point/end point? You would put that in the TIMELIST component to get estimates at that specific time point.</description>
      <pubDate>Wed, 26 Jan 2022 17:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Kaplan-meier-estimated-risk-ratio/m-p/792562#M253951</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-26T17:31:05Z</dc:date>
    </item>
  </channel>
</rss>

