<?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 PROC FREQ Binomial 95%CI with ratio=0% (e.g., 0 out of 4) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Binomial-95-CI-with-ratio-0-e-g-0-out-of-4/m-p/953272#M83811</link>
    <description>&lt;P&gt;Have category variable and within each category, a binary (0,1) variable.&amp;nbsp; Need 95% CI for all categories.&amp;nbsp; But if ratio is 0%, there is nothing in the output file, so how do I find the upper limit 95% CI using PROC FREQ (or alternate procedure).&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 19:28:46 GMT</pubDate>
    <dc:creator>paulrutti</dc:creator>
    <dc:date>2024-12-11T19:28:46Z</dc:date>
    <item>
      <title>PROC FREQ Binomial 95%CI with ratio=0% (e.g., 0 out of 4)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Binomial-95-CI-with-ratio-0-e-g-0-out-of-4/m-p/953272#M83811</link>
      <description>&lt;P&gt;Have category variable and within each category, a binary (0,1) variable.&amp;nbsp; Need 95% CI for all categories.&amp;nbsp; But if ratio is 0%, there is nothing in the output file, so how do I find the upper limit 95% CI using PROC FREQ (or alternate procedure).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 19:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Binomial-95-CI-with-ratio-0-e-g-0-out-of-4/m-p/953272#M83811</guid>
      <dc:creator>paulrutti</dc:creator>
      <dc:date>2024-12-11T19:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FREQ Binomial 95%CI with ratio=0% (e.g., 0 out of 4)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Binomial-95-CI-with-ratio-0-e-g-0-out-of-4/m-p/953277#M83812</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/471630"&gt;@paulrutti&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_freq_syntax13.htm#procstat.freq.freqzeros" target="_blank" rel="noopener"&gt;ZEROS option&lt;/A&gt; of the WEIGHT statement is often useful in this situation. Does the example below help you?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create sample data for demonstration */

data have;
do category='A', 'B', 'C';
  do _iorc_=1 to 9;
    _n_+1;
    binvar=(_n_&amp;lt;17);
    output;
  end;
end;
run;

/* Create intermediate dataset including combinations with zero frequencies */

proc freq data=have noprint;
tables category*binvar / sparse out=cnt;
run;

/* Compute confidence intervals for the proportion of BINVAR=1 in each category */

proc freq data=cnt;
by category;
weight count / zeros;
tables binvar / binomial(level='1');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 20:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FREQ-Binomial-95-CI-with-ratio-0-e-g-0-out-of-4/m-p/953277#M83812</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-12-11T20:33:06Z</dc:date>
    </item>
  </channel>
</rss>

