<?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: re: PROC GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/re-PROC-GENMOD/m-p/200188#M10737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One generic approach for this type of issue is to not create specific variables for age but assign a format that creates the groups needed. Then you make a custom format with the desired groupings and assign that format during the procedure execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example format code:&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value age5groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 - 25 = '10 to 25'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26 - 35 = '26 to 35'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36 - 45 = '36 to 45'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 - 55 = '46 to 55'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55 - high='56+';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value age3groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 - 25 = '10 to 25'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26 - 45 = '26 to 45'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 - high = '46+';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Assuming you age is integer years. Use the different format in the procedure by adding:&lt;/P&gt;&lt;P&gt;format age age5groups. ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;format age age3groups. ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 15:58:46 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-03-13T15:58:46Z</dc:date>
    <item>
      <title>re: PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/re-PROC-GENMOD/m-p/200187#M10736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...I a new to using the Proc Genmod procedure and I am using a model with the Class Variables Area and AgeGroup. After running the program, the output revealled that some of the AgeGroups can be combined. Is there a simple way of combining these AgeGroups together similiar to adding ref=&amp;lt;value&amp;gt; to the Class statement without having to this in the dataset before re-running the program. Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 18:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/re-PROC-GENMOD/m-p/200187#M10736</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2015-03-12T18:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: re: PROC GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/re-PROC-GENMOD/m-p/200188#M10737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One generic approach for this type of issue is to not create specific variables for age but assign a format that creates the groups needed. Then you make a custom format with the desired groupings and assign that format during the procedure execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example format code:&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value age5groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 - 25 = '10 to 25'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26 - 35 = '26 to 35'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 36 - 45 = '36 to 45'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 - 55 = '46 to 55'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55 - high='56+';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value age3groups&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 - 25 = '10 to 25'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 26 - 45 = '26 to 45'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 46 - high = '46+';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Assuming you age is integer years. Use the different format in the procedure by adding:&lt;/P&gt;&lt;P&gt;format age age5groups. ;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;format age age3groups. ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 15:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/re-PROC-GENMOD/m-p/200188#M10737</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-03-13T15:58:46Z</dc:date>
    </item>
  </channel>
</rss>

