<?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 Freq Two-Way Table with lots of variables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638546#M78175</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a two-way frequency table to check if some binary variables I made were made correctly. I had a list of industry codes and I created groups of them via the binary variables. For example, I have a variable NaturalResource if the industry code for any observation is greater than 0170 and less than 0490. I have 21 of these dummy variables and I want to compare the frequencies of the industry code to these variables. When I run&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=class.newacsmig2010_2018;
tables IND*Finance*Information*Natresource*utilities*Realestate*accomodation*administrative*construction*educational
entertainment*healthcare*management*manufacturing*military*notworked5yrs*otherservices*profservices 
publicadmin*retail*transportation*wholesale /list; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get pretty close to what I want but the problem it only shows the first 9 binary variables on the table that includes the industrial codes, the other 12 get put on their own table which makes it impossible to see what Industry code they are associated with. I've tried outputting to excel but the file just puts the different tables on different sheets instead of combining them. I really just want the first table (in the pictures below) but with all my variables. Thanks in advance for any help.&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="Mattbot_0-1586391590299.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38068i90071CC6E4EA6193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mattbot_0-1586391590299.png" alt="Mattbot_0-1586391590299.png" /&gt;&lt;/span&gt;&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="Mattbot_1-1586391642330.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38069iAA382C66CE2CBA6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mattbot_1-1586391642330.png" alt="Mattbot_1-1586391642330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Apr 2020 00:21:58 GMT</pubDate>
    <dc:creator>Mattbot</dc:creator>
    <dc:date>2020-04-09T00:21:58Z</dc:date>
    <item>
      <title>Proc Freq Two-Way Table with lots of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638546#M78175</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to make a two-way frequency table to check if some binary variables I made were made correctly. I had a list of industry codes and I created groups of them via the binary variables. For example, I have a variable NaturalResource if the industry code for any observation is greater than 0170 and less than 0490. I have 21 of these dummy variables and I want to compare the frequencies of the industry code to these variables. When I run&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=class.newacsmig2010_2018;
tables IND*Finance*Information*Natresource*utilities*Realestate*accomodation*administrative*construction*educational
entertainment*healthcare*management*manufacturing*military*notworked5yrs*otherservices*profservices 
publicadmin*retail*transportation*wholesale /list; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get pretty close to what I want but the problem it only shows the first 9 binary variables on the table that includes the industrial codes, the other 12 get put on their own table which makes it impossible to see what Industry code they are associated with. I've tried outputting to excel but the file just puts the different tables on different sheets instead of combining them. I really just want the first table (in the pictures below) but with all my variables. Thanks in advance for any help.&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="Mattbot_0-1586391590299.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38068i90071CC6E4EA6193/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mattbot_0-1586391590299.png" alt="Mattbot_0-1586391590299.png" /&gt;&lt;/span&gt;&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="Mattbot_1-1586391642330.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38069iAA382C66CE2CBA6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mattbot_1-1586391642330.png" alt="Mattbot_1-1586391642330.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 00:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638546#M78175</guid>
      <dc:creator>Mattbot</dc:creator>
      <dc:date>2020-04-09T00:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Two-Way Table with lots of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638548#M78176</link>
      <description>&lt;P&gt;I don't understand your output at all ... this is not a 2-way table, but actually a 22-way table, and I have never seen or heard of anyone doing such a thing. Are you sure that's what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I can see the reason your code gives you this problem where 9 variables on the first table ending with educational. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look at your code. ID and&amp;nbsp; the next 9 variables have an asterisk separating the variables. But there is no asterisk after "educational". Therefore ... after variable "educational" you need a .........&lt;/P&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="tap-translate"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2020 00:36:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638548#M78176</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-09T00:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq Two-Way Table with lots of variables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638550#M78177</link>
      <description>Yes, it is what I wanted, I'm also missing an asterisk after publicadmin... Thank you</description>
      <pubDate>Thu, 09 Apr 2020 00:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Freq-Two-Way-Table-with-lots-of-variables/m-p/638550#M78177</guid>
      <dc:creator>Mattbot</dc:creator>
      <dc:date>2020-04-09T00:55:27Z</dc:date>
    </item>
  </channel>
</rss>

