<?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 GLM with Poisson in SAS GENMOD vs R (very different chisq), why? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605660#M29422</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sas and r to perform a glm with poisson distribution. I get the exact same estimates of the coeffs but very different degress och freedom and chisq.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates=pe;
proc genmod data=input;
logoffset=log(offset);
model count =  /dist = poisson 
				  link=log
				  offset=logoffset;
run;

R:
glm(count ~ offset(logoffset), family = poisson)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cant find anything about yates correction in sas proc genmod. Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2019 15:58:52 GMT</pubDate>
    <dc:creator>td1345</dc:creator>
    <dc:date>2019-11-20T15:58:52Z</dc:date>
    <item>
      <title>GLM with Poisson in SAS GENMOD vs R (very different chisq), why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605660#M29422</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using sas and r to perform a glm with poisson distribution. I get the exact same estimates of the coeffs but very different degress och freedom and chisq.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output ParameterEstimates=pe;
proc genmod data=input;
logoffset=log(offset);
model count =  /dist = poisson 
				  link=log
				  offset=logoffset;
run;

R:
glm(count ~ offset(logoffset), family = poisson)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cant find anything about yates correction in sas proc genmod. Ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605660#M29422</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2019-11-20T15:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: GLM with Poisson in SAS GENMOD vs R (very different chisq), why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605770#M29423</link>
      <description>&lt;P&gt;Your GENMOD code uses the LOGOFFSET variable twice in the model, once as a predictor and then again as an offset (which is also a predictor with parameter estimate restricted to 1). If your purpose is to fit an intercept-only model with an offset, then remove LOGOFFSET prior to the slash (/) to remove it as a redundant predictor from the model.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 15:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605770#M29423</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-11-20T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: GLM with Poisson in SAS GENMOD vs R (very different chisq), why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605818#M29424</link>
      <description>Oh, that is a typo in my copying, sorry for that.</description>
      <pubDate>Wed, 20 Nov 2019 15:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605818#M29424</guid>
      <dc:creator>td1345</dc:creator>
      <dc:date>2019-11-20T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: GLM with Poisson in SAS GENMOD vs R (very different chisq), why?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605944#M29427</link>
      <description>&lt;P&gt;If you are referring to the continuity correction attributed to Yates, see the several options for continuity correction discussed in the description of the TABLES statement in the PROC FREQ documentation. From your code, it seems likely that you are trying to test a binomial proportion, so the BINOMIAL(CORRECT) option might be what you are looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 20:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-with-Poisson-in-SAS-GENMOD-vs-R-very-different-chisq-why/m-p/605944#M29427</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2019-11-20T20:59:31Z</dc:date>
    </item>
  </channel>
</rss>

