<?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 tabulate percentage numerator/denominator in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-percentage-numerator-denominator/m-p/206858#M51407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;I have been digging for many hours through the internet now but could not find a way to calculate the simple percentage of (N/sgu)*100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=data.data01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class main_cat_text sub_cat_text timeframe;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var normmw nummberOf_nnnb nummberOf_b sgu rwsgalt rwsgneu;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table main_cat_text='Main Cat'*sub_cat_text='SubCat'*timeframe='timeframe', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; N='nummberOfahl' nummberOf_nnnb='nummberOfahl NN/NB'*f=4.0 nummberOf_b='nummberOfahl B'*f=4.0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; normmw=' '*(min mean median p75 p90 p95 max)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rwsgalt='RW/SG old'*mean rwsgneu='RW/SG new'*mean sgu='nummberOfahl&amp;gt;RW/SG' *f=4.0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading through various PDF´s I tried to adjust solutions to suit my proc tabulate but....none worked. Error are many, most common:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multiple analysis variables associated with a single table cell in the following nesting : MAIN_CAT_TEXT * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main_KAT_TEXT * timeframe* All * nummberOf_nnnb * 'sgu'n * Sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main_cat_text All='Total',nummberOf_nnnb*sgu*(sum colpctn) ALL='Total'; &lt;/P&gt;&lt;P&gt;main_cat_text all, (N='Gender (Count)'all)*n*f=4.(sgu='Gender (%)'all)*PCTN/box='Example of using PCTN'; &lt;/P&gt;&lt;P&gt;(N all)*sgu*(sum*f=dollar10. rowpctsum) / rts=8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be greatly appreciated if you could help to enlighted me what am I not understanding here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Apr 2015 07:56:00 GMT</pubDate>
    <dc:creator>metallon</dc:creator>
    <dc:date>2015-04-30T07:56:00Z</dc:date>
    <item>
      <title>proc tabulate percentage numerator/denominator</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-percentage-numerator-denominator/m-p/206858#M51407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAS Experts,&lt;/P&gt;&lt;P&gt;I have been digging for many hours through the internet now but could not find a way to calculate the simple percentage of (N/sgu)*100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc tabulate data=data.data01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class main_cat_text sub_cat_text timeframe;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var normmw nummberOf_nnnb nummberOf_b sgu rwsgalt rwsgneu;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table main_cat_text='Main Cat'*sub_cat_text='SubCat'*timeframe='timeframe', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; N='nummberOfahl' nummberOf_nnnb='nummberOfahl NN/NB'*f=4.0 nummberOf_b='nummberOfahl B'*f=4.0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; normmw=' '*(min mean median p75 p90 p95 max)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rwsgalt='RW/SG old'*mean rwsgneu='RW/SG new'*mean sgu='nummberOfahl&amp;gt;RW/SG' *f=4.0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading through various PDF´s I tried to adjust solutions to suit my proc tabulate but....none worked. Error are many, most common:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are multiple analysis variables associated with a single table cell in the following nesting : MAIN_CAT_TEXT * &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main_KAT_TEXT * timeframe* All * nummberOf_nnnb * 'sgu'n * Sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main_cat_text All='Total',nummberOf_nnnb*sgu*(sum colpctn) ALL='Total'; &lt;/P&gt;&lt;P&gt;main_cat_text all, (N='Gender (Count)'all)*n*f=4.(sgu='Gender (%)'all)*PCTN/box='Example of using PCTN'; &lt;/P&gt;&lt;P&gt;(N all)*sgu*(sum*f=dollar10. rowpctsum) / rts=8;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be greatly appreciated if you could help to enlighted me what am I not understanding here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 07:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-percentage-numerator-denominator/m-p/206858#M51407</guid>
      <dc:creator>metallon</dc:creator>
      <dc:date>2015-04-30T07:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate percentage numerator/denominator</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-percentage-numerator-denominator/m-p/206859#M51408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide some data we can use, what you want the output to look like and reduce the example code to just the elements of interest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you actually trying to divide the count of records (N) by individual values of SGU or a sum of SGU?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Apr 2015 15:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-tabulate-percentage-numerator-denominator/m-p/206859#M51408</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-30T15:31:39Z</dc:date>
    </item>
  </channel>
</rss>

