<?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 Freq for categorical variables in the case and control groups in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806813#M33583</link>
    <description>&lt;P&gt;If you want the frequency distribution of each variable by itself, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Proc freq data= work.query;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt; case ethnic sex smoke ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 16:59:48 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2022-04-08T16:59:48Z</dc:date>
    <item>
      <title>Proc Freq for categorical variables in the case and control groups</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806810#M33581</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-04-08 at 10.47.09 AM.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70246i892457FA2205F22C/image-size/small?v=v2&amp;amp;px=200" role="button" title="Screen Shot 2022-04-08 at 10.47.09 AM.png" alt="Screen Shot 2022-04-08 at 10.47.09 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying to fill out this table of categorical information (ethnicity, smoking status, ..so on) I am asked to use proc freq to do this. The code I have tried is:&lt;/P&gt;
&lt;P&gt;Proc freq data= work.query; &lt;BR /&gt;by case ethnic sex smoke ; &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;The output is below and not in the format I need. I am not sure how to change my code to get the information I am trying to get.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&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="Screen Shot 2022-04-08 at 10.51.54 AM.png" style="width: 837px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70247i01D4E03B9065615E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-04-08 at 10.51.54 AM.png" alt="Screen Shot 2022-04-08 at 10.51.54 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806810#M33581</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2022-04-08T16:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq for categorical variables in the case and control groups</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806811#M33582</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc freq data= work.query;
tables case*(ethnic sex smoke)/chisq;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CHISQ option gives you the p-values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806811#M33582</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-04-08T17:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq for categorical variables in the case and control groups</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806813#M33583</link>
      <description>&lt;P&gt;If you want the frequency distribution of each variable by itself, use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Proc freq data= work.query;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;TABLES&lt;/STRONG&gt; case ethnic sex smoke ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 16:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806813#M33583</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-08T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Freq for categorical variables in the case and control groups</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806816#M33585</link>
      <description>&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 17:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Proc-Freq-for-categorical-variables-in-the-case-and-control/m-p/806816#M33585</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2022-04-08T17:03:48Z</dc:date>
    </item>
  </channel>
</rss>

