<?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 Calculate 1-RR 95% CI when all participants experience event in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780028#M38280</link>
    <description>&lt;P&gt;This is more of a statistics question than a SAS question but I was wondering if it were possible to calculate 1-RR and its 95% CI in SAS when all participants experienced the event of interest.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input trt $ cnt tot flag;
 cards;
  1	0	4	0
  1 4	4	1
  2	0	8	0
  2	8	8	1
  3	0	6	0
  3	6	6	1
  ;
run;

proc freq data= have;
 weight cnt;
 tables flag*trt / out= _ve_ relrisk(method= fm);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above code doesn't work since there are no subjects with FLAG=0 (i.e. did not develop disease). &lt;STRONG&gt;I am trying to calculate vaccine efficacy defined by 1-RR, but if I can't calculate that, then is there a reasonable alternative I can use in SAS?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 19:00:06 GMT</pubDate>
    <dc:creator>mariko5797</dc:creator>
    <dc:date>2021-11-12T19:00:06Z</dc:date>
    <item>
      <title>Calculate 1-RR 95% CI when all participants experience event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780028#M38280</link>
      <description>&lt;P&gt;This is more of a statistics question than a SAS question but I was wondering if it were possible to calculate 1-RR and its 95% CI in SAS when all participants experienced the event of interest.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input trt $ cnt tot flag;
 cards;
  1	0	4	0
  1 4	4	1
  2	0	8	0
  2	8	8	1
  3	0	6	0
  3	6	6	1
  ;
run;

proc freq data= have;
 weight cnt;
 tables flag*trt / out= _ve_ relrisk(method= fm);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above code doesn't work since there are no subjects with FLAG=0 (i.e. did not develop disease). &lt;STRONG&gt;I am trying to calculate vaccine efficacy defined by 1-RR, but if I can't calculate that, then is there a reasonable alternative I can use in SAS?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 19:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780028#M38280</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-11-12T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate 1-RR 95% CI when all participants experience event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780106#M38282</link>
      <description>&lt;P&gt;Firstly, RELRISK need 2x2 contingency table ,but yours is 2x3 .&lt;/P&gt;
&lt;P&gt;Secondly, the count of flag=0 is zero . SAS also can't calculated it .&lt;/P&gt;
&lt;P&gt;Check your data firstly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 input trt $ cnt tot flag;
 cards;
  1	0	4	0
  1 4	4	1
  2	0	8	0
  2	8	8	1
  3	0	6	0
  3	6	6	1
  ;
run;

proc freq data= have;
where trt in ('1' '2');
 weight cnt/zero ;
 tables flag*trt/nocol norow nopercent  relrisk(NONINFERIORITY method= fm);
 exact relrisk;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Nov 2021 12:12:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780106#M38282</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-13T12:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate 1-RR 95% CI when all participants experience event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780109#M38283</link>
      <description>&lt;P&gt;A similar topic (CI for a proportion) was discussed in &lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-95-CI-for-a-proportion-of-100/m-p/477314#M24851" target="_self"&gt;a previous thread.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The suggestion there was to use the&amp;nbsp;EXACT BINOMIAL statement in PROC FREQ.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 12:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780109#M38283</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-11-13T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate 1-RR 95% CI when all participants experience event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780278#M38293</link>
      <description>&lt;P&gt;Wouldn't using exact binomial be different from relative risk? I already used &lt;FONT color="#0000FF"&gt;binomial(cl=&amp;nbsp; wilson); exact binomial;&lt;/FONT&gt; to obtain the infection rate, but I am trying to find RR to obtain the vaccine efficacy.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would the hazard ratio make an okay approximation since 100% of subjects experienced the event?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780278#M38293</guid>
      <dc:creator>mariko5797</dc:creator>
      <dc:date>2021-11-15T18:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate 1-RR 95% CI when all participants experience event</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780308#M38295</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;Wouldn't using exact binomial be different from relative risk?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Correct. I wanted to direct you to the other discussion and its references in case anything there was relevant to your question.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-1-RR-95-CI-when-all-participants-experience-event/m-p/780308#M38295</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-11-15T21:58:59Z</dc:date>
    </item>
  </channel>
</rss>

