<?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 Doubts about proc genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Doubts-about-proc-genmod/m-p/405121#M21122</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generate a model to predict the number of absences of a school alumn. My inputs var are: math and literature marks of the alumns and their sex. The number of absences vary from 0 to 12. I am using a GLM model with 'proc genmod'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data = test;
 class sexo;
 model diasau = nota_mates nota_lengua sexo / dist=Poisson;
 store out=modelo_glm;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have some doubts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- How can I select the apropiate distibution: Poisson...?&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; Do I have to do some log transformation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not an expert in GLM models, but I know that I have to review the model deviance vs degree of freedoms:&lt;/P&gt;
&lt;P&gt;Thats what I get:&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="genmod.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15982i40AC24F481C13751/image-size/large?v=v2&amp;amp;px=999" role="button" title="genmod.png" alt="genmod.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 08:18:26 GMT</pubDate>
    <dc:creator>juanvg1972</dc:creator>
    <dc:date>2017-10-18T08:18:26Z</dc:date>
    <item>
      <title>Doubts about proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Doubts-about-proc-genmod/m-p/405121#M21122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to generate a model to predict the number of absences of a school alumn. My inputs var are: math and literature marks of the alumns and their sex. The number of absences vary from 0 to 12. I am using a GLM model with 'proc genmod'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data = test;
 class sexo;
 model diasau = nota_mates nota_lengua sexo / dist=Poisson;
 store out=modelo_glm;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have some doubts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- How can I select the apropiate distibution: Poisson...?&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; Do I have to do some log transformation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not an expert in GLM models, but I know that I have to review the model deviance vs degree of freedoms:&lt;/P&gt;
&lt;P&gt;Thats what I get:&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="genmod.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15982i40AC24F481C13751/image-size/large?v=v2&amp;amp;px=999" role="button" title="genmod.png" alt="genmod.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 08:18:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Doubts-about-proc-genmod/m-p/405121#M21122</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2017-10-18T08:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts about proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Doubts-about-proc-genmod/m-p/405671#M21147</link>
      <description>&lt;P&gt;A count response is most typically modeled using the Poisson or the negative binomial distribution. The negative binomial distribution is used when the Poisson model shows evidence of overdispersion as discussed in &lt;A href="http://support.sas.com/kb/22630" target="_self"&gt;this note&lt;/A&gt;. Since your "Value/DF" values are all less than 1, there doesn't seem to be any evidence of overdispersion. When fitting either of those distributions, the log link function is the default, so that the model is log(mean) = intercept + b1*x1 + b2*x2 + ... .&amp;nbsp; So, you should not apply any transformation to your response.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 17:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Doubts-about-proc-genmod/m-p/405671#M21147</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2017-10-19T17:40:53Z</dc:date>
    </item>
  </channel>
</rss>

