<?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 Freq Percent? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878455#M43431</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I found out the percent results obtained from Airway(44.9%) and Prematurity(70.5%) subgroups&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you expect two different variables to add up to 100%?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 15:03:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-05-31T15:03:00Z</dc:date>
    <item>
      <title>Proc Freq Percent?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878447#M43430</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have Proc Freq statement below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=test;
	table Airway / out=Airway_Total_N nocol norow nocum;
	where Age_group in (1,2,3,4) and C_Underly=1;
	format Age_group Age_group.;
run;

proc freq data=test;
	table Prematurity / out=Prematurity_Total_N nocol norow nocum;
	where Age_group in (1,2,3,4) and C_Underly=1;
	format Age_group Age_group.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I found out the percent results obtained from Airway(44.9%) and Prematurity(70.5%) subgroups.&amp;nbsp; I I expect the percent sum should not be over 100% because I would like to use."&lt;CODE class=" language-sas"&gt;Age_group in (1,2,3,4) and C_Underly=1&lt;/CODE&gt;" as the denominator.&amp;nbsp; &amp;nbsp;Where did I do wrong? how to fix ti?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878447#M43430</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2023-05-31T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Percent?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878455#M43431</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I found out the percent results obtained from Airway(44.9%) and Prematurity(70.5%) subgroups&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why would you expect two different variables to add up to 100%?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878455#M43431</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-05-31T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Percent?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878456#M43432</link>
      <description>&lt;P&gt;If you run two PROC FREQs separately, SAS doesn't know that the maximum in your mind should be 100%. I think it should not be 100%. The reason it is over 100% is that subjects can be in both the AIRWAY and PREMATURITY groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you want to run one PROC FREQ like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;table Airway*Prematurity / out=Airway_Total_N nocol norow nocum;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then you will get results that add to 100%. Whether or not this particular analysis is what you want is a different question, you didn't say exactly what you do want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 15:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Freq-Percent/m-p/878456#M43432</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-05-31T15:25:43Z</dc:date>
    </item>
  </channel>
</rss>

