<?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: Using proc freq to categorize in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601190#M173850</link>
    <description>&lt;P&gt;How do you intend to represent the variable classification&amp;gt;&amp;nbsp; Will you produce three datasets (A,B, and C) with qualifying variables in each?&amp;nbsp; Do you just want a report table with each variable listed along with the classification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alsol, do any of your original variables ever have missing values?&amp;nbsp; If so, do the 30% and 80% cutpoints include counting the missing values, or not?&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;</description>
    <pubDate>Sun, 03 Nov 2019 01:20:46 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2019-11-03T01:20:46Z</dc:date>
    <item>
      <title>Using proc freq to categorize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601183#M173848</link>
      <description>&lt;P&gt;Hello forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to classify variables based off their responses - 0 to 9 into "A" , "B" and "C".&lt;/P&gt;&lt;P&gt;Especially, i want people with the "0" response that is less than 30% in the "C" category and people with "0" response between "30% -80%" in the "B" category and people with &amp;gt;80% in the C category.&lt;/P&gt;&lt;P&gt;Please how do i go about this.&lt;/P&gt;&lt;P&gt;Any help or idea is appreciated.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=two;
table T1	T2	T3	T4; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33603iA4E89EF8E3E2D16F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 22:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601183#M173848</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-02T22:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc freq to categorize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601190#M173850</link>
      <description>&lt;P&gt;How do you intend to represent the variable classification&amp;gt;&amp;nbsp; Will you produce three datasets (A,B, and C) with qualifying variables in each?&amp;nbsp; Do you just want a report table with each variable listed along with the classification?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alsol, do any of your original variables ever have missing values?&amp;nbsp; If so, do the 30% and 80% cutpoints include counting the missing values, or not?&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;</description>
      <pubDate>Sun, 03 Nov 2019 01:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601190#M173850</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-11-03T01:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc freq to categorize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601191#M173851</link>
      <description>&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;I hope them to be in 3 different datasets.&lt;/P&gt;&lt;P&gt;I am so confused on how to do that with proc freq.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 01:44:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601191#M173851</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2019-11-03T01:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc freq to categorize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601205#M173854</link>
      <description>&lt;P&gt;Are you classifying people/individual records or variables?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;proc freq summarizes variables not individuals.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;plans what does I want people with 0 response that is less than 30% in the C and people with the 0 response in the 30 to 8 as B.&amp;nbsp;&lt;BR /&gt;how does one person have more than one response?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236266"&gt;@ChuksManuel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello forum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to classify variables based off their responses - 0 to 9 into "A" , "B" and "C".&lt;/P&gt;
&lt;P&gt;Especially, i want people with the "0" response that is less than 30% in the "C" category and people with "0" response between "30% -80%" in the "B" category and people with &amp;gt;80% in the C category.&lt;/P&gt;
&lt;P&gt;Please how do i go about this.&lt;/P&gt;
&lt;P&gt;Any help or idea is appreciated.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=two;
table T1	T2	T3	T4; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 403px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33603iA4E89EF8E3E2D16F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 07:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601205#M173854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-11-03T07:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using proc freq to categorize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601221#M173860</link>
      <description>&lt;P&gt;PROC FREQ produces only one data set. You could take the results of PROC FREQ and use them to help create other data sets, however, your stated rules are not clear and definitive enough to create code that winds up which creates these data sets. How can "0" less than 30% be in C, but other "0" between 30 and 80 be in "B"? How do we tell the "0" that are in C apart from "0" that wind up in "B". &lt;STRONG&gt;Explain this in much more detail, give us an example.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2019 16:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-proc-freq-to-categorize/m-p/601221#M173860</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-03T16:33:45Z</dc:date>
    </item>
  </channel>
</rss>

