<?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: Exact Poisson, proc genmod in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-Poisson-proc-genmod/m-p/528571#M26704</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I did my due diligence and found out that zero inflated negative binomial was recommended for the rare events with lots of zero in the data. This improves the model fit from AIC 16080 to AIC 16010. i hope this might help if someone had similar doubt i had. Any objections if it was the solution to my problem? I'll greatly appreciate if any feedbacks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS OUTPUT ParameterEstimates=ZINB_PAR;
proc genmod data=MYDATA;
   CLASS AGECAT(REF='10')/PARAM=REF;
   model N_TRACT = PREDICTOR POVERTY AGECAT/ dist=ZINB offset=LN;
   zeromodel AGECAT;
   ODS TRACE ON; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; &lt;/P&gt;</description>
    <pubDate>Sat, 19 Jan 2019 21:44:02 GMT</pubDate>
    <dc:creator>Cruise</dc:creator>
    <dc:date>2019-01-19T21:44:02Z</dc:date>
    <item>
      <title>Exact Poisson, proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-Poisson-proc-genmod/m-p/528228#M26703</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm running Poisson regression model. My outcome is the number of events per census block group and the predictor is the number of toxic industrial facilities per census block group. My events are very rare where maximum count is 3 and min is 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to run exact poisson regression model shown in the code below. But I get the error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING: There is not enough memory available to build the network for exact computations.&lt;BR /&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm skeptical if it's a memory issue. Because model doesn't run even at the first obs=100 observations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions and ideas? Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GENMOD DATA=MYDATA;
CLASS AGECAT(REF='10')/PARAM=REF ref=first;
MODEL N_BLOCK = X_COUNT SES AGECAT/ DIST=POISSON LINK=LOG OFFSET=LN;
exact X_COUNT;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Means: Summary statistics" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="4" scope="colgroup"&gt;Analysis Variable : N_BLOCK&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="r b header" scope="col"&gt;Minimum&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Mean&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Median&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Maximum&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="r data"&gt;0&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0090629&lt;/TD&gt;
&lt;TD class="r data"&gt;0&lt;/TD&gt;
&lt;TD class="r data"&gt;3.0000000&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sat, 19 Jan 2019 21:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exact-Poisson-proc-genmod/m-p/528228#M26703</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-19T21:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exact Poisson, proc genmod</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Exact-Poisson-proc-genmod/m-p/528571#M26704</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I did my due diligence and found out that zero inflated negative binomial was recommended for the rare events with lots of zero in the data. This improves the model fit from AIC 16080 to AIC 16010. i hope this might help if someone had similar doubt i had. Any objections if it was the solution to my problem? I'll greatly appreciate if any feedbacks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS OUTPUT ParameterEstimates=ZINB_PAR;
proc genmod data=MYDATA;
   CLASS AGECAT(REF='10')/PARAM=REF;
   model N_TRACT = PREDICTOR POVERTY AGECAT/ dist=ZINB offset=LN;
   zeromodel AGECAT;
   ODS TRACE ON; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 21:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Exact-Poisson-proc-genmod/m-p/528571#M26704</guid>
      <dc:creator>Cruise</dc:creator>
      <dc:date>2019-01-19T21:44:02Z</dc:date>
    </item>
  </channel>
</rss>

