<?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 Suppression of percentages in proc tabulate in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Suppression-of-percentages-in-proc-tabulate/m-p/512120#M2300</link>
    <description>&lt;P&gt;I am creating a bunch of tables using proc tabulate, but due to the privacy of the individuals who have answered my survey, I need to mask any cell&amp;nbsp;with an N of only 5 or less than 5. I have managed to mask the N, but not the corresponding percentages. Is it possible to do so using proc tabulate? If it is, how do I do this correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc format;
	value hide
		1-5= "*"
		other = [comma8.];
run;

Proc tabulate data=have;
class year gender quest1;
table  (gender="")*(rowpctn N*F=hide.), year*(quest1="");
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is my current output (I have made up the data):&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;nbsp;2014&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Maybe&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Boy&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;*&lt;/TD&gt;&lt;TD&gt;*&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PctN&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Girl&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PctN&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want sas to also mask the cells showing that 10 % of the boys have answered no/maybe. Is this possible?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2018 08:53:56 GMT</pubDate>
    <dc:creator>BeeB</dc:creator>
    <dc:date>2018-11-12T08:53:56Z</dc:date>
    <item>
      <title>Suppression of percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Suppression-of-percentages-in-proc-tabulate/m-p/512120#M2300</link>
      <description>&lt;P&gt;I am creating a bunch of tables using proc tabulate, but due to the privacy of the individuals who have answered my survey, I need to mask any cell&amp;nbsp;with an N of only 5 or less than 5. I have managed to mask the N, but not the corresponding percentages. Is it possible to do so using proc tabulate? If it is, how do I do this correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc format;
	value hide
		1-5= "*"
		other = [comma8.];
run;

Proc tabulate data=have;
class year gender quest1;
table  (gender="")*(rowpctn N*F=hide.), year*(quest1="");
run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is my current output (I have made up the data):&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;&amp;nbsp;2014&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;No&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Maybe&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Boy&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;*&lt;/TD&gt;&lt;TD&gt;*&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PctN&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Girl&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PctN&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;TD&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want sas to also mask the cells showing that 10 % of the boys have answered no/maybe. Is this possible?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 08:53:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Suppression-of-percentages-in-proc-tabulate/m-p/512120#M2300</guid>
      <dc:creator>BeeB</dc:creator>
      <dc:date>2018-11-12T08:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Suppression of percentages in proc tabulate</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Suppression-of-percentages-in-proc-tabulate/m-p/512204#M2308</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; In order to help you, people have to do these things:&lt;BR /&gt;1) make some fake data&lt;BR /&gt;2) guess what your ODS destination is (you don't show any ODS statements) or indicate whether you want PDF, RTF or HTML output&lt;BR /&gt;&lt;BR /&gt;In order to help us help you, it's good to have your code, but no one can run your code without data.&lt;BR /&gt;&lt;BR /&gt;Without data, the only thing I can guess is that just as you are doing N*F=hide. for the N statistic (and it ONLY applies to the N statistic). You need to have a different format for percent. &lt;BR /&gt;&lt;BR /&gt;There's something odd about your made up data, and I assume those are made up results too, because TABULATE does not automatically provide a percent sign for percents. So the question is, how are you getting those % signs in the output. You should need a picture format to generate them. Also curious is how you are getting a label of "PctN" when the statistic you're asking for is "rowpctn" -- by default, TABULATE would use the statistic name as the label. Also, I am curious how you got the Total on the far left. When I make some fake data from SASHELP.CLASS and use your code (without the format), this is what I get:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yes_no_maybe.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24819i7B396729D35023DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="yes_no_maybe.png" alt="yes_no_maybe.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Note how RowPctN is above the N statistic. Note also how there is not a TOTAL column. And, there are NOT any percent signs by default. So having your data or some fake data and ALL your code&amp;nbsp; showing how you got % and the Total and how the N row got listed first -- would be useful.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 14:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Suppression-of-percentages-in-proc-tabulate/m-p/512204#M2308</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-11-12T14:50:41Z</dc:date>
    </item>
  </channel>
</rss>

