<?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 var not showing all categories in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553721#M154000</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot (120).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28994i65E8DF5832DF4310/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (120).png" alt="Screenshot (120).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, I am wanting the Race categories to show. I am not sure how to code that though. I want it to show both 'Obese' and 'Race' categories like the above picture.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2019 17:15:34 GMT</pubDate>
    <dc:creator>jogden</dc:creator>
    <dc:date>2019-04-24T17:15:34Z</dc:date>
    <item>
      <title>Proc tabulate var not showing all categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553463#M153912</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (118).png" style="width: 424px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28951iCCC7BF63461BB849/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (118).png" alt="Screenshot (118).png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (119).png" style="width: 540px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28952i09566717E06DDC61/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (119).png" alt="Screenshot (119).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I use proc tabulate it is not showing all of the categories under my variable. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data=combined ;&lt;BR /&gt;class obese;&lt;BR /&gt;var racenew;&lt;BR /&gt;table racenew,&lt;BR /&gt;obese='Obese'*(n=' '*f=comma12.0 pctsum=' '*f=pctfmt.) ;&lt;BR /&gt;format racenew racenew. obese obese. ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a picture of what comes out:&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; ObesePatients with Obesity&lt;BR /&gt;Patients without&lt;BR /&gt;ObesityRace &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;3,168&lt;/TD&gt;&lt;TD&gt;(7.94%)&lt;/TD&gt;&lt;TD&gt;36,482&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;(92.06%)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to show the categories of 'Race'. Ex:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Race&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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;/P&gt;&lt;P&gt;Native American&lt;/P&gt;&lt;P&gt;Caucasian&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;African American&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Apr 2019 23:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553463#M153912</guid>
      <dc:creator>jogden</dc:creator>
      <dc:date>2019-04-23T23:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate var not showing all categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553469#M153913</link>
      <description>&lt;P&gt;To get the report you have shown, RACENEW must be part of the CLASS statement, not part of the VAR statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to sum here?&amp;nbsp; Is there some other variable that you haven't mentioned?&amp;nbsp; Or do you actually need PCTN instead of PCTSUM?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 23:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553469#M153913</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-04-23T23:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate var not showing all categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553721#M154000</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot (120).png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28994i65E8DF5832DF4310/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (120).png" alt="Screenshot (120).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, I am wanting the Race categories to show. I am not sure how to code that though. I want it to show both 'Obese' and 'Race' categories like the above picture.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 17:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553721#M154000</guid>
      <dc:creator>jogden</dc:creator>
      <dc:date>2019-04-24T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc tabulate var not showing all categories</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553726#M154001</link>
      <description>&lt;P&gt;I just figured it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc tabulate data=combined ;&lt;BR /&gt;class obese racenew;&lt;BR /&gt;table racenew,&lt;BR /&gt;obese='Obese'*(n=' '*f=comma12.0 pctn=' '*f=pctfmt.) ;&lt;BR /&gt;format racenew racenew. obese obese. ;&lt;BR /&gt;run;&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="Screenshot (121).png" style="width: 489px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28997iDD2DBEB65AD31DE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot (121).png" alt="Screenshot (121).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 17:20:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-tabulate-var-not-showing-all-categories/m-p/553726#M154001</guid>
      <dc:creator>jogden</dc:creator>
      <dc:date>2019-04-24T17:20:51Z</dc:date>
    </item>
  </channel>
</rss>

