<?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. No print missing in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399211#M66607</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE  data=com ;
CLASS  pop;
class sot /missing ;
TABLE (pop all='Totale'),
     sot * (rowpctn) ;
RUN; &lt;/PRE&gt;
&lt;P&gt;Though I preferr to use 0/1 coded variables as Var variables as N, Sum and Mean become very useful as a group: N= total valid responses (either 0 or 1), Sum= number of 1 valued responses and Mean with a percent format is the percentage of 1 responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2017 14:57:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-27T14:57:32Z</dc:date>
    <item>
      <title>Proc tabulate. No print missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399090#M66603</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this dataset and I'd like to do a proc tabulate to produce a tabulate like &lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;the one below&lt;/SPAN&gt;&lt;/SPAN&gt; but without the column missign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN class=""&gt;data com;&lt;BR /&gt;infile datalines;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input pop&amp;nbsp;&amp;nbsp; sot&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;datalines;&lt;BR /&gt;1&amp;nbsp; 1&lt;BR /&gt;2&amp;nbsp; .&lt;BR /&gt;3&amp;nbsp; 1&lt;BR /&gt;1&amp;nbsp; .&lt;BR /&gt;2&amp;nbsp; 1&lt;BR /&gt;3&amp;nbsp; .&lt;BR /&gt;1&amp;nbsp; .&lt;BR /&gt;2&amp;nbsp; 1&lt;BR /&gt;3&amp;nbsp; 1&lt;BR /&gt;1&amp;nbsp; .&lt;BR /&gt;2&amp;nbsp; .&lt;BR /&gt;3&amp;nbsp; 1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC TABULATE&amp;nbsp; data=com missing;&lt;BR /&gt;CLASS&amp;nbsp; pop sot ;&lt;BR /&gt;TABLE (pop all='Totale'),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sot * (rowpctn) ;&lt;BR /&gt;RUN; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura.JPG" style="width: 222px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15441i8A05417DAEF35F21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura.JPG" alt="Cattura.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 09:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399090#M66603</guid>
      <dc:creator>Elena</dc:creator>
      <dc:date>2017-09-27T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate. No print missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399103#M66604</link>
      <description>&lt;P&gt;Just run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC TABULATE  data=com   /* missing  */;
CLASS  pop sot ;
TABLE (pop all='Totale'),
     sot * (rowpctn) ;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Sep 2017 10:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399103#M66604</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-09-27T10:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate. No print missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399125#M66605</link>
      <description>&lt;P&gt;Run but not well.&lt;/P&gt;&lt;P&gt;The table whithout missing in this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cattura2.JPG" style="width: 169px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15445i7F84AF3BC04396E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cattura2.JPG" alt="Cattura2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 11:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399125#M66605</guid>
      <dc:creator>Elena</dc:creator>
      <dc:date>2017-09-27T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate. No print missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399167#M66606</link>
      <description>&lt;P&gt;When you want the % of a flag, you are better off using 0 instead of missing in your data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data com;&lt;/P&gt;
&lt;P&gt;infile datalines;&lt;/P&gt;
&lt;P&gt;input pop sot;&lt;/P&gt;
&lt;P&gt;if sot=. then sot=0;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;..........&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you have choices, but the basic idea is to compute the MEAN of the variable.&amp;nbsp; You can label it as the Row % if you want, but calculate the mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc tabulate data=com;&lt;/P&gt;
&lt;P&gt;class pop;&lt;/P&gt;
&lt;P&gt;var sot;&lt;/P&gt;
&lt;P&gt;tables (pop all='Totale'), sot*mean='Row %';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will get you a decimal fraction, such as 0.25.&amp;nbsp; It you really want to convert this, you could apply a format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sot*mean='Row %' * f=percent9.2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 13:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399167#M66606</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-27T13:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate. No print missing</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399211#M66607</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE  data=com ;
CLASS  pop;
class sot /missing ;
TABLE (pop all='Totale'),
     sot * (rowpctn) ;
RUN; &lt;/PRE&gt;
&lt;P&gt;Though I preferr to use 0/1 coded variables as Var variables as N, Sum and Mean become very useful as a group: N= total valid responses (either 0 or 1), Sum= number of 1 valued responses and Mean with a percent format is the percentage of 1 responses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2017 14:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-tabulate-No-print-missing/m-p/399211#M66607</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-27T14:57:32Z</dc:date>
    </item>
  </channel>
</rss>

