<?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: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835239#M41375</link>
    <description>&lt;P&gt;Unfortunately, it's a notorious problem with glimmix that it is a resource hog.&amp;nbsp; Even with relatively small samples, it will not be able to run unless it is hosted on a supercomputer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Barring that, your best option might be to run the model on multiple, sufficiently small samples, and hope to observe consistency.&amp;nbsp; Of course, that probably wouldn't cut it for a peer-reviewed report, but may be useful for decision-making purposes based on the output.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 17:43:44 GMT</pubDate>
    <dc:creator>awesome_opossum</dc:creator>
    <dc:date>2022-09-26T17:43:44Z</dc:date>
    <item>
      <title>ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835204#M41372</link>
      <description>&lt;P&gt;Hello, I am fitting the glimmix procedure below but didn't get an output because the data is too big:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc glimmix data=female method=quad; &lt;BR /&gt;class age(ref='14 years or younger')grade(ref='9th grade') race4(ref='White, NH') Region1(ref='South');&lt;BR /&gt;model TEAMS_NO(ref='False')=year age grade race4 Region1 / ODDSRATIO SOLUTION DIST=BINARY; &lt;BR /&gt;RANDOM Intercept / TYPE=VC Subject=RECORD;&lt;BR /&gt;random intercept / subject=record weight=weight; &lt;BR /&gt;Title 'school predicting ';&lt;BR /&gt;format YEAR user. TEAMS_MU TRUEFALS. TEAMS_NO TRUEFALS. SEX SEX. age age. grade grade. race4 race. Region1 region.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;496 Proc glimmix data=female method=quad;&lt;BR /&gt;497 class age(ref='14 years or younger')grade(ref='9th grade') race4(ref='White, NH')&lt;BR /&gt;497! Region1(ref='South');&lt;BR /&gt;498 model TEAMS_NO(ref='False')=year age grade race4 Region1 / ODDSRATIO SOLUTION DIST=BINARY;&lt;BR /&gt;499 RANDOM Intercept / TYPE=VC Subject=RECORD;&lt;BR /&gt;500 random intercept / subject=record weight=weight;&lt;BR /&gt;501 Title 'school predicting ';&lt;BR /&gt;502 format YEAR user. TEAMS_MU TRUEFALS. TEAMS_NO TRUEFALS. SEX SEX. age age. grade grade. race4&lt;BR /&gt;502! race. Region1 region.;&lt;BR /&gt;503 run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;NOTE: Some observations are not used in the analysis because of: missing fixed effects (n=11697).&lt;BR /&gt;NOTE: The GLIMMIX procedure is modeling the probability that TEAMS_NO='True'.&lt;BR /&gt;ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this&lt;BR /&gt;system. Consider changing your model.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;BR /&gt;real time 2.43 seconds&lt;BR /&gt;cpu time 2.43 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 15:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835204#M41372</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2022-09-26T15:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835239#M41375</link>
      <description>&lt;P&gt;Unfortunately, it's a notorious problem with glimmix that it is a resource hog.&amp;nbsp; Even with relatively small samples, it will not be able to run unless it is hosted on a supercomputer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Barring that, your best option might be to run the model on multiple, sufficiently small samples, and hope to observe consistency.&amp;nbsp; Of course, that probably wouldn't cut it for a peer-reviewed report, but may be useful for decision-making purposes based on the output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 17:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835239#M41375</guid>
      <dc:creator>awesome_opossum</dc:creator>
      <dc:date>2022-09-26T17:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835254#M41376</link>
      <description>&lt;P&gt;First, what is the memsize? If you run the following program the log will tell you that --&lt;/P&gt;
&lt;P&gt;proc options option=memsize value;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;If it is the default 2GB then you need to increase the memsize.&lt;/P&gt;
&lt;P&gt;Secondly, you need to make sure your data is sorted by RECORD; then add ddfm=residual option in the MODEL statement.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 18:36:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835254#M41376</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2022-09-26T18:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835287#M41377</link>
      <description>&lt;P&gt;THank you, I ran&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;proc options option=memsize value; run;&amp;nbsp; and below is the log file&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option Value Information For SAS Option MEMSIZE&lt;BR /&gt;Value: 2147483648&lt;BR /&gt;Scope: SAS Session&lt;BR /&gt;How option value set: Config File&lt;BR /&gt;Config file name:&lt;BR /&gt;C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg&lt;/P&gt;
&lt;P&gt;NOTE: PROCEDURE OPTIONS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835287#M41377</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2022-09-26T20:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835307#M41378</link>
      <description>I don't see "record" in the CLASS statement. Have you tried running the model with it included? Also, is there a way you can simplify to one RANDOM statement since they are both specifying a random intercept for that variable.</description>
      <pubDate>Mon, 26 Sep 2022 20:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835307#M41378</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-09-26T20:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835342#M41379</link>
      <description>&lt;P&gt;You need to increase the memsize for your SAS sessions. Here is how --&lt;/P&gt;
&lt;P&gt;1) Right click on the notepad App and choose run as admin.&lt;/P&gt;
&lt;P&gt;2) use file open in notepad to get to &lt;SPAN&gt;C:\Program Files\SASHome\SASFoundation\9.4\nls\en\sasv9.cfg&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;3) Increase memsize by modifying the following statement in the file to::&lt;/P&gt;
&lt;P&gt;-memsize=8G&lt;/P&gt;
&lt;P&gt;(or any other value that is within your computer capacity)&lt;/P&gt;
&lt;P&gt;4) Save and exit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you re run your program, make sure that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) your data is sorted by RECORD&lt;/P&gt;
&lt;P&gt;2) use one RANDOM statement instead of two RANDOM statements (your two RANDOM statements are almost the same).&lt;/P&gt;
&lt;P&gt;3) add ddfm=residual option in your MODEL statement.&lt;/P&gt;
&lt;P&gt;Please let us know how things go.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 22:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835342#M41379</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2022-09-26T22:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Model is too large to be fit by PROC GLIMMIX in a reasonable amount of time on this</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835441#M41383</link>
      <description>&lt;P&gt;In addition to the great responses from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60873"&gt;@jiltao&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/181543"&gt;@svh&lt;/a&gt;&amp;nbsp;, you might also have luck if you changed from adaptive quadrature (method=quad) to a REML-pseudolikelihood method (method=RSPL, or for marginal effects method=RMPL).&amp;nbsp; This suggestion is based on the paper by Stroup and Claassen (2020)&amp;nbsp;&lt;A href="https://link.springer.com/article/10.1007/s13253-020-00402-6" target="_self"&gt;https://link.springer.com/article/10.1007/s13253-020-00402-6&lt;/A&gt;&amp;nbsp;(Paywall). or&amp;nbsp;&lt;A href="https://ibook.pub/pseudo-likelihood-or-quadrature-what-we-thought-we-knew-what-we-think-we-know-and-what-we-are-still-trying-to-figure.html" target="_self"&gt;https://ibook.pub/pseudo-likelihood-or-quadrature-what-we-thought-we-knew-what-we-think-we-know-and-what-we-are-still-trying-to-figure.html&lt;/A&gt;&amp;nbsp;(pdf, but you have to wade through a splash page loaded with links).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you go to a single RANDOM, be sure you use the one with the WEIGHTS option if this is based on survey data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 14:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/ERROR-Model-is-too-large-to-be-fit-by-PROC-GLIMMIX-in-a/m-p/835441#M41383</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-09-27T14:01:16Z</dc:date>
    </item>
  </channel>
</rss>

