<?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 Help for %do loop on variables bucketing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-for-do-loop-on-variables-bucketing/m-p/194658#M36601</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you guys know that before anyone could start off with PROC GENMOD, they may be consider doing bucketing for their class/independent variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently interested in doing a loop macro for the bucketing. The criteria will be ensuring that the maximum number of buckets for each variable is 5 and each variable bucket will have at least 5% of frequency, thus we might need to incorporate cumulative frequency into the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly to say, I know what I want to do, but I am unsure how to actually create the loop macros for SAS to automatically do the bucketing for me according to the criteria. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate all feedback and ideas! Thanks for the help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 19:35:08 GMT</pubDate>
    <dc:creator>kayne</dc:creator>
    <dc:date>2015-08-07T19:35:08Z</dc:date>
    <item>
      <title>Help for %do loop on variables bucketing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-for-do-loop-on-variables-bucketing/m-p/194658#M36601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you guys know that before anyone could start off with PROC GENMOD, they may be consider doing bucketing for their class/independent variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently interested in doing a loop macro for the bucketing. The criteria will be ensuring that the maximum number of buckets for each variable is 5 and each variable bucket will have at least 5% of frequency, thus we might need to incorporate cumulative frequency into the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sadly to say, I know what I want to do, but I am unsure how to actually create the loop macros for SAS to automatically do the bucketing for me according to the criteria. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will appreciate all feedback and ideas! Thanks for the help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-for-do-loop-on-variables-bucketing/m-p/194658#M36601</guid>
      <dc:creator>kayne</dc:creator>
      <dc:date>2015-08-07T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help for %do loop on variables bucketing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-for-do-loop-on-variables-bucketing/m-p/194659#M36602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before getting into any macro code for grouping I tend to look at Proc Format to assign group values. Most procedures will use the formatted value for groups. I would look at proc freq or univariate output to find likely values to set the boundary values for the format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 19:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-for-do-loop-on-variables-bucketing/m-p/194659#M36602</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-08-07T19:46:44Z</dc:date>
    </item>
  </channel>
</rss>

