<?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: How to make Proc Freq levels table for one variable GIVEN another variable? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626287#M184698</link>
    <description>&lt;P&gt;I think you just need to include the where clause. Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=CarsVROOM nlevels;
where &lt;SPAN&gt;place_of_origin &lt;/SPAN&gt;= 'USA';
tables type;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2020 19:10:00 GMT</pubDate>
    <dc:creator>Krueger</dc:creator>
    <dc:date>2020-02-20T19:10:00Z</dc:date>
    <item>
      <title>How to make Proc Freq levels table for one variable GIVEN another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626283#M184697</link>
      <description>&lt;P&gt;I need to make a proc freq levels table for a variable "type", but only for entries that are ' USA ' under the "place_of_origin" variable.&lt;/P&gt;&lt;P&gt;Right now I'm doing&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;proc freq data=CarsVROOM nlevels;
tables type;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it shows me the freq table for all the "Type"s, but I want to see the freq table for all the "Type"s only for ' USA ' objects. What options do I add to the tables statement? Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 18:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626283#M184697</guid>
      <dc:creator>whoisyourmother</dc:creator>
      <dc:date>2020-02-20T18:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Proc Freq levels table for one variable GIVEN another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626287#M184698</link>
      <description>&lt;P&gt;I think you just need to include the where clause. Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=CarsVROOM nlevels;
where &lt;SPAN&gt;place_of_origin &lt;/SPAN&gt;= 'USA';
tables type;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626287#M184698</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2020-02-20T19:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Proc Freq levels table for one variable GIVEN another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626289#M184700</link>
      <description>&lt;P&gt;Beautiful, thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 19:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-Proc-Freq-levels-table-for-one-variable-GIVEN/m-p/626289#M184700</guid>
      <dc:creator>whoisyourmother</dc:creator>
      <dc:date>2020-02-20T19:12:05Z</dc:date>
    </item>
  </channel>
</rss>

