<?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: Percentages in Proc Freq do not sum to 100 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27884#M6420</link>
    <description>If you give it a bit of thought: It's actually correct that the detail numbers are not always summing up to 100% (the total line though will be 100%).&lt;BR /&gt;
&lt;BR /&gt;
Let's say you have 4 detail percentages where the exact values are:&lt;BR /&gt;
24.44,24.44,24.44,26.68&lt;BR /&gt;
&lt;BR /&gt;
You want now these values listed with only one decimal. You would most likely use arithmetic rounding:&lt;BR /&gt;
24.4,24.4,24.4,26.7&lt;BR /&gt;
&lt;BR /&gt;
And well: This doesn't sum up to 100%. But where would you "cheat" and use another rounding algorithm?&lt;BR /&gt;
&lt;BR /&gt;
I used to have a boss who never understood this. It was a pain!&lt;BR /&gt;
Best you can do is add a footnote where you explain why the detail numbers might not add up to 100%.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Thu, 10 Dec 2009 07:12:32 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-12-10T07:12:32Z</dc:date>
    <item>
      <title>Percentages in Proc Freq do not sum to 100</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27882#M6418</link>
      <description>Is there any way to force Proc Freq to round in such a way that percentages always sum to 100?  I have been getting a lot of sums of 99.9 or even as low as 99.7, and that just looks bad on a report.</description>
      <pubDate>Wed, 09 Dec 2009 14:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27882#M6418</guid>
      <dc:creator>lhatbrn</dc:creator>
      <dc:date>2009-12-09T14:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages in Proc Freq do not sum to 100</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27883#M6419</link>
      <description>Could this be related to the famous numeric precision question?&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts654.pdf" target="_blank"&gt;http://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000695157.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a000695157.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts230.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts230.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The simplest way (and I'm sure you've already though of that) would be to round the sum to the nearest integer.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Wed, 09 Dec 2009 14:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27883#M6419</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-12-09T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages in Proc Freq do not sum to 100</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27884#M6420</link>
      <description>If you give it a bit of thought: It's actually correct that the detail numbers are not always summing up to 100% (the total line though will be 100%).&lt;BR /&gt;
&lt;BR /&gt;
Let's say you have 4 detail percentages where the exact values are:&lt;BR /&gt;
24.44,24.44,24.44,26.68&lt;BR /&gt;
&lt;BR /&gt;
You want now these values listed with only one decimal. You would most likely use arithmetic rounding:&lt;BR /&gt;
24.4,24.4,24.4,26.7&lt;BR /&gt;
&lt;BR /&gt;
And well: This doesn't sum up to 100%. But where would you "cheat" and use another rounding algorithm?&lt;BR /&gt;
&lt;BR /&gt;
I used to have a boss who never understood this. It was a pain!&lt;BR /&gt;
Best you can do is add a footnote where you explain why the detail numbers might not add up to 100%.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 10 Dec 2009 07:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Percentages-in-Proc-Freq-do-not-sum-to-100/m-p/27884#M6420</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-12-10T07:12:32Z</dc:date>
    </item>
  </channel>
</rss>

