<?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 tabulate calculating percentage in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117388#M32375</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect, thank you very much. Out of Curiosity what is the difference between the two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martinezz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 16:08:04 GMT</pubDate>
    <dc:creator>Martinez77</dc:creator>
    <dc:date>2013-08-21T16:08:04Z</dc:date>
    <item>
      <title>Proc tabulate calculating percentage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117386#M32373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.I need to calculate a percentage in proc tabulate. I am trying to sum a variable (totalsch) then find it's percentage of the column total. &lt;/P&gt;&lt;P&gt;I believe the code below would do that, however, when I check the calculation the percentage is incorrect. &lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data = Collegeofmusic style=untpdf;&lt;/P&gt;&lt;P&gt;class acad_plan&amp;nbsp; acad_term_desc;&lt;/P&gt;&lt;P&gt;var totalsch;&lt;/P&gt;&lt;P&gt;Table acad_plan All='Total',acad_term_desc*totalsch*(sum colpctn) ALL='Total';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Martinezz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 15:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117386#M32373</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-21T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate calculating percentage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117387#M32374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you are looking for colpctSUM rather than colpctN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 15:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117387#M32374</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-08-21T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate calculating percentage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117388#M32375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Astounding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect, thank you very much. Out of Curiosity what is the difference between the two?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martinezz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 16:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117388#M32375</guid>
      <dc:creator>Martinez77</dc:creator>
      <dc:date>2013-08-21T16:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate calculating percentage</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117389#M32376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both get you column percentages, but ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colpctN computes percentages based on the N statistic (number of observations with a nonmissing value for the analysis variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;colpctSUM computes percentages based on the SUM statistic (sum of the analysis variable)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 17:16:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-calculating-percentage/m-p/117389#M32376</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-08-21T17:16:19Z</dc:date>
    </item>
  </channel>
</rss>

