<?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 continuous variables in CLASS statement in PROC GENMOD in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152712#M40158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreeing with &lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, the original poster seems to be using the CLASS statement opposite of the way it was intended to be used here. Region is CLASS, Age is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jan 2014 15:18:59 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2014-01-27T15:18:59Z</dc:date>
    <item>
      <title>Using continuous variables in CLASS statement in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152710#M40156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="p1"&gt;Hello,&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;I apologize if the answer to this question is obvious but I'm having trouble finding a clear answer to my question.&amp;nbsp; I am using PROC GENMOD to estimate some incidence rates (adjusted for age distributions) for different regions, using the ESTIMATE statement. However, I am uncertain which variables to include in my CLASS statement.&amp;nbsp; Since I have region coded using dummy variables for the different levels, I know that doesn't need to be in the CLASS statement.&amp;nbsp; But if I am adjusting for age, age^2 and age^-1, do I put them in my CLASS statement?&amp;nbsp; When I leave the age terms out of the CLASS statement, my incidence rates seem too high.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;If possible, please explain to me how the CLASS statement functions when estimating adjusted rates.&amp;nbsp; Doesn't it essentially make dummy variables across the levels of all of the variables included in the CLASS statement?&amp;nbsp; What I don't understand is why this is needed to estimate the incidence rates.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thank you for your help.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Coding below --&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;GENMOD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;DATA&lt;/SPAN&gt;=work.Merge_CountPT_AgeRegion1;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;CLASS&lt;/SPAN&gt; age agesq ageneg1;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;MODEL&lt;/SPAN&gt; cases = age agesq ageneg1 region2 region3 region4 region5&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; / &lt;SPAN class="s2"&gt;DIST&lt;/SPAN&gt;=poi &lt;SPAN class="s2"&gt;LINK&lt;/SPAN&gt;=log &lt;SPAN class="s2"&gt;offset&lt;/SPAN&gt;=LOG_PT &lt;SPAN class="s2"&gt;SCALE&lt;/SPAN&gt;=deviance;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;ESTIMATE&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;"IR: Region 1"&lt;/SPAN&gt; int &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region2 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region3 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region4 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region5 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;ESTIMATE&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;"IR: Region 2"&lt;/SPAN&gt; int &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region2 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region3 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region4 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region5 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;ESTIMATE&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;"IR: Region 3"&lt;/SPAN&gt; int &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region2 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region3 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region4 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region5 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;ESTIMATE&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;"IR: Region 4"&lt;/SPAN&gt; int &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region2 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region3 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region4 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region5 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;ESTIMATE&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;"IR: Region 5"&lt;/SPAN&gt; int &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; region2 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region3 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region4 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; region5 &lt;SPAN class="s4"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P class="p3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;SPAN class="s5"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2014 16:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152710#M40156</guid>
      <dc:creator>mconover</dc:creator>
      <dc:date>2014-01-25T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using continuous variables in CLASS statement in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152711#M40157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the write-up for the ESTIMATE statement under Shared Concepts and Topics of the SAS/STAT documentation, as well as in the GENMOD.documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CLASS statement will generate dummy codes, and there are at least 8 different ways these can be generated using the PARAM= option.&amp;nbsp; It is critical to know which is being used in estimate statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious as to why you have dummy variables precoded for region, when it is a classic candidate for a CLASS variable, and then use age, agesq and ageneg1 as continuous covariates.&amp;nbsp; The five estimate statements could be replaced with a single LSMEANS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:12:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152711#M40157</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-01-27T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using continuous variables in CLASS statement in PROC GENMOD</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152712#M40158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreeing with &lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;, the original poster seems to be using the CLASS statement opposite of the way it was intended to be used here. Region is CLASS, Age is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 15:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-continuous-variables-in-CLASS-statement-in-PROC-GENMOD/m-p/152712#M40158</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-01-27T15:18:59Z</dc:date>
    </item>
  </channel>
</rss>

