<?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: showing N and row percentages in proc tabulate in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417763#M67706</link>
    <description>&lt;P&gt;Since you have only classification variables, and no analysis variables, there is no way to calculate PCTSUM.&amp;nbsp; You could switch to PCTN instead, if that's what you want (or ROWPCTN).&amp;nbsp; But to get the sum of something, SAS needs to know what variable you want to sum.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 15:22:17 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-12-01T15:22:17Z</dc:date>
    <item>
      <title>showing N and row percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417739#M67702</link>
      <description>&lt;P&gt;I am using this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc tabulate data=SomeData;
	class Class1 Class2;
	table Class1, Class2;
run;&lt;/PRE&gt;&lt;P&gt;which shows N for each cell in this 2 dimensional scenario. How can I add a row percentage please? I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc tabulate data=SomeData;
	class Class1 Class2;
	table Class1*ROWPCTSUM, Class2;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 12:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417739#M67702</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-12-01T12:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: showing N and row percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417763#M67706</link>
      <description>&lt;P&gt;Since you have only classification variables, and no analysis variables, there is no way to calculate PCTSUM.&amp;nbsp; You could switch to PCTN instead, if that's what you want (or ROWPCTN).&amp;nbsp; But to get the sum of something, SAS needs to know what variable you want to sum.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 15:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417763#M67706</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-12-01T15:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: showing N and row percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417821#M67707</link>
      <description>Thanks this contradicts the book: PROC TABULATE by Example, Second Edition but maybe the book is wrong ...</description>
      <pubDate>Fri, 01 Dec 2017 19:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417821#M67707</guid>
      <dc:creator>csetzkorn</dc:creator>
      <dc:date>2017-12-01T19:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: showing N and row percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417827#M67708</link>
      <description>&lt;P&gt;A&amp;nbsp;"thinking out of the box" reply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a number of concepts that I find difficult or confusing in PROC TABULATE, including all the percent options, but are very easy to get right in a data step of some sort. So my usual method is to get all the rows and columns to look the way I want in a data step (often using PROC SUMMARY), and then use PROC REPORT or even PROC PRINT to create the final table.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 20:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417827#M67708</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-12-01T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: showing N and row percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417841#M67709</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99946"&gt;@csetzkorn&lt;/a&gt; wrote:&lt;BR /&gt;Thanks this contradicts the book: PROC TABULATE by Example, Second Edition but maybe the book is wrong ...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please copy the text you are referencing to the forum. The book has a LOT of examples and many of them involve percentages in one form or another. It is hard to comment on something unseen...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 20:13:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/showing-N-and-row-percentages-in-proc-tabulate/m-p/417841#M67709</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-01T20:13:06Z</dc:date>
    </item>
  </channel>
</rss>

