<?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: Insufficient memory error - proc GENMOD Poisson regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783311#M38468</link>
    <description>&lt;P&gt;Removing the ESTIMATE statements did not help, however, using&amp;nbsp;&lt;SPAN&gt;HPGENSELECT did work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am unfamiliar with&amp;nbsp;&lt;SPAN&gt;HPGENSELECT so wanted to ensure that exponentiating the estimates will result in a risk ratio similar to the estimates provided with GENMOD.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 03:30:37 GMT</pubDate>
    <dc:creator>LuC3</dc:creator>
    <dc:date>2021-12-01T03:30:37Z</dc:date>
    <item>
      <title>Insufficient memory error - proc GENMOD Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783063#M38452</link>
      <description>&lt;P&gt;I submitted the following code to calculate risk ratios using Poisson regression (my binomial models did not converge). My data set has ~3million observations so I received the following: "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;proc genmod data=library;&lt;BR /&gt;class inf (ref = "0") id /param=ref;&lt;BR /&gt;model GA = inf /dist=poisson link=log;&lt;BR /&gt;repeated subject=id/type=ind;&lt;BR /&gt;estimate 'RR GA 1 vs. 0' inf 1 0 0 0 0/exp;&lt;BR /&gt;estimate 'RR GA 2 vs. 0' inf 0 1 0 0 0/exp;&lt;BR /&gt;estimate 'RR GA 3 vs. 0' inf 0 0 1 0 0/exp;&lt;BR /&gt;estimate 'RR GA 4 vs. 0' inf 0 0 0 1 0/exp;&lt;BR /&gt;estimate 'RR GA 5 vs. 0' inf 0 0 0 0 1/exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, I will be running an adjusted model with 9 covariates. All variables are dichotomous.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I have tried setting MEMSIZE = 8GB and then to 0 and still get the insufficient memory error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My current memory is the following (however, since setting to 0, I get an ERROR: INVALID OPTION VALUE when trying to change again):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Group=MEMORY&lt;BR /&gt;SORTSIZE=1073741824&lt;BR /&gt;Specifies the amount of memory that is available to the SORT procedure.&lt;BR /&gt;SUMSIZE=0 Specifies a limit on the amount of memory that is available for data summarization procedures when class variables are active.&lt;BR /&gt;MAXMEMQUERY=0 Specifies the maximum amount of memory that is allocated for procedures.&lt;BR /&gt;MEMBLKSZ=16777216 Specifies the memory block size for Windows memory-based libraries.&lt;BR /&gt;MEMMAXSZ=2147483648 Specifies the maximum amount of memory to allocate for using memory-based libraries.&lt;BR /&gt;LOADMEMSIZE=0 Specifies a suggested amount of memory that is needed for executable programs loaded by SAS.&lt;BR /&gt;MEMSIZE=2147483648 Specifies the limit on the amount of virtual memory that can be used during a SAS session.&lt;BR /&gt;REALMEMSIZE=0 Specifies the amount of real memory SAS can expect to allocate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4 on a laptop with&amp;nbsp;8.00 GB RAM (7.88 GB usable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to overcome this memory issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 05:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783063#M38452</guid>
      <dc:creator>LuC3</dc:creator>
      <dc:date>2021-11-30T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error - proc GENMOD Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783103#M38454</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First try to run the same PROC GENMOD without ESTIMATE statements.&lt;/P&gt;
&lt;P&gt;If the ESTIMATE statements are the reason, we can come up with an alternative (like storing the model and do the ESTIMATEs in a subsequent PROC PLM). Or even better, by switching to LSMEANS / LSMESTIMATE / SLICE statements (if possible).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If still insufficient memory try fitting the same model with&amp;nbsp;&lt;SPAN&gt;HPGENSELECT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If it is a GEE-model, try PROC GEE as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let us know the result,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 11:44:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783103#M38454</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-30T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error - proc GENMOD Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783150#M38459</link>
      <description>&lt;P&gt;If the variable ID listed as the SUBJECT= effect in the REPEATED statement is a unique identifier for the 3 million-ish observations, then I suspect that is the cause of the insufficient memory error. I believe on some machines (I'm not 100% sure on the specifics)&amp;nbsp;some of the memory allocations associated with the levelization of the variables on the CLASS statement will start to run up against the max allocation size around 3 million plus levels.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As per this &lt;A href="https://support.sas.com/kb/65/658.html" target="_self"&gt;SAS Problems Note&lt;/A&gt;&amp;nbsp;some changes were made to PROC GEE that can increase this max number of subjects somewhat for 64 bit hosts. I'd suggest reaching out to&lt;A href="https://support.sas.com/en/technical-support.html" target="_self"&gt; technical support&lt;/A&gt;&amp;nbsp;to discuss this issue with them.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 14:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783150#M38459</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2021-11-30T14:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient memory error - proc GENMOD Poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783311#M38468</link>
      <description>&lt;P&gt;Removing the ESTIMATE statements did not help, however, using&amp;nbsp;&lt;SPAN&gt;HPGENSELECT did work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am unfamiliar with&amp;nbsp;&lt;SPAN&gt;HPGENSELECT so wanted to ensure that exponentiating the estimates will result in a risk ratio similar to the estimates provided with GENMOD.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 03:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-memory-error-proc-GENMOD-Poisson-regression/m-p/783311#M38468</guid>
      <dc:creator>LuC3</dc:creator>
      <dc:date>2021-12-01T03:30:37Z</dc:date>
    </item>
  </channel>
</rss>

