<?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 SAS OnDemand in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/869399#M43018</link>
    <description>&lt;P&gt;This&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings12/332-2012.pdf" target="_self"&gt;paper&lt;/A&gt;&amp;nbsp; provides some guidance when dealing with the warning message you receive with your model and data. You can modify the INITITER= option on the PROC GLIMMIX statement to use more than the default 4 iterations to find starting values for this model. You might try specifying your own starting values as well using the PARMS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have not done so already, try PROC SGPLOT to plot the trajectories for each subject. Use week as your X variable and your response as the Y. You could group the id's by the treatment they received, too. This plot would give you some idea as to how the response varies over the weeks and if your model is appropriate for this data.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 11:58:26 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2023-04-12T11:58:26Z</dc:date>
    <item>
      <title>Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866567#M42826</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am trying to run a repeated measures analysis on feeding behavior variables in a Randomized Complete Block Design. The measurements were repeated on animals weekly. I have ~1800 rows of data and want to run it all at once for proper analysis of the effect of treatment, week, and the interaction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code I originally ran:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;Data ELORA;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;infile "/home/mwilli200/ELORA.PhD.2022/Feeding Behaviour Data.csv" dlm=","&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;firstobs=2;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;input ID$ group block tmt$ week dintake wintake timefe visit&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;timevisit vsize rate meal timemeal msize;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;proc sort data=elora;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;by id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;*************************************************;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;proc glimmix data=ELORA1 plots=studentpanel;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class block tmt ID week;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model dintake= tmt week tmt*week/ ddfm=kenwardroger;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random block block*tmt/ subject=id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random week/ residual type=arh(1) subject=id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans tmt tmt*week week/ pdiff adjust=tukey lines;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;*output out=second predicted=pred residual=resid residual(noblup)=mresid &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;student=studentresid student(noblup)=smresid;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I received the following error message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran the exact same program with only including weeks 1-4 to cut the number of rows down to 480. Below is the error message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;ERROR: The SAS System stopped processing this step because of insufficient memory.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;NOTE: PROCEDURE GLIMMIX used (Total process time):&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;real time 2.83 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;user cpu time 0.48 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;system cpu time 2.35 seconds&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;memory 4115670.81k&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;OS Memory 4136412.00k&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Timestamp 03/27/2023 04:00:10 PM&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Step Count 51 Switch Count 7&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Page Faults 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Page Reclaims 958039&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Page Swaps 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Voluntary Context Switches 42&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Involuntary Context Switches 5&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Block Input Operations 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Block Output Operations 544&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;I understand there are data limitations for this program (5 gb) but this is my only platform option currently and I have a Mac. Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Melissa,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866567#M42826</guid>
      <dc:creator>mwilli20</dc:creator>
      <dc:date>2023-03-27T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866575#M42827</link>
      <description>&lt;P&gt;SAS On Demand runs on a server, and the memory available is shared between all users. I don't think you can request more memory. The only thing I can think of for you is to try running your code at a different time of day when the server might have fewer users.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866575#M42827</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-27T16:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866712#M42832</link>
      <description>&lt;P&gt;Do you want to treat block*id and block*tmt*id as random effects? That is what your RANDOM statement is doing. Do id's see different levels of block and block*tmt? If not, then take SUBJECT=ID off the RANDOM statement to fit block and block*tmt as random effects. RANDOM int tmt / subject=block will do that.&lt;/P&gt;
&lt;P&gt;ARH(1) fits a covariance parameter for each week. It appears that you have 120 animals in the study, so the full data set has 15 weeks (120*15=1800)? If so, that number of covariance parameters should not pose a problem, unless demand on the server is high. You could try AR(1) to see if you can get that to fit.&lt;/P&gt;
&lt;P&gt;Knowing the number of levels to each class effect will help get you a better answer from the community, too.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/866712#M42832</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-03-28T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/868856#M42986</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have taken the subject out of my first random statement, and I think we are almost getting there. I can provide more information on the class levels:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;block = 2 levels, was predetermined by weight at the beginning of the study&lt;/P&gt;&lt;P&gt;tmt = 4 different dietary treatments (1 per ID)&lt;/P&gt;&lt;P&gt;ID = 120 different animals (each see only one treatment, and one block)&lt;/P&gt;&lt;P&gt;week = 1-19 (***each animal has 1-X number of weeks of data, this is not the same for all animals as they were serially removed from the study).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;proc glimmix data=ELORA plots=studentpanel;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class block tmt ID week;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model dintake= tmt week tmt*week/ ddfm=kenwardroger;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random block block*tmt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random week/ residual type=arh(1) subject=id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans tmt tmt*week week/ pdiff adjust=tukey lines adjdfe=row;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;output out=second predicted=pred residual=resid residual(noblup)=mresid &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;student=studentresid student(noblup)=smresid;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my log error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;WARNING: The initial estimates did not yield a valid objective function.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your continued support!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 13:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/868856#M42986</guid>
      <dc:creator>mwilli20</dc:creator>
      <dc:date>2023-04-10T13:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/869399#M43018</link>
      <description>&lt;P&gt;This&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings12/332-2012.pdf" target="_self"&gt;paper&lt;/A&gt;&amp;nbsp; provides some guidance when dealing with the warning message you receive with your model and data. You can modify the INITITER= option on the PROC GLIMMIX statement to use more than the default 4 iterations to find starting values for this model. You might try specifying your own starting values as well using the PARMS statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have not done so already, try PROC SGPLOT to plot the trajectories for each subject. Use week as your X variable and your response as the Y. You could group the id's by the treatment they received, too. This plot would give you some idea as to how the response varies over the weeks and if your model is appropriate for this data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 11:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/869399#M43018</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2023-04-12T11:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/870405#M43079</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I am still receiving a error warning when running the below code:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;proc glimmix data=ELORA plots=studentpanel inititer=3000;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class block tmt ID week;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model dintake= tmt week tmt*week/ ddfm=kenwardroger;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random block block*tmt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random week/ residual type=ar(1) subject=id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans tmt tmt*week week/ pdiff adjust=tukey lines adjdfe=row;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;SPAN&gt;WARNING: The initial estimates did not yield a valid objective function.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am wondering if it is because not all subjects have an observation for every week of the study? How could I work with this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/870405#M43079</guid>
      <dc:creator>mwilli20</dc:creator>
      <dc:date>2023-04-18T17:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insufficient Memory SAS OnDemand</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/870406#M43080</link>
      <description>&lt;P&gt;Hello again everyone,&lt;/P&gt;&lt;P&gt;Based on my previous reply, I decided to take out the second random statement, and the code seemed to run. What would I have lost in this analysis by removing the red section? Is this acceptable?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;proc glimmix data=ELORA plots=studentpanel inititer=3000;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;class block tmt ID week;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;model dintake= tmt week tmt*week/ ddfm=kenwardroger;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;random block block*tmt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;*random week/ residual type=ar(1) subject=id;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;lsmeans tmt tmt*week week/ pdiff adjust=tukey lines adjdfe=row;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Insufficient-Memory-SAS-OnDemand/m-p/870406#M43080</guid>
      <dc:creator>mwilli20</dc:creator>
      <dc:date>2023-04-18T17:12:03Z</dc:date>
    </item>
  </channel>
</rss>

