BookmarkSubscribeRSS Feed
milanxiaoyao
Calcite | Level 5

Dear all,

      I am now using proc nlmixed to estimate a GLMM model. But the programme stopped because of the insufficient memory. My data set is not very large, which contains

less than 1500 observations and 20 variables. I specified five random effects for different groups. Could you tell me how to fix this problem.

      I have tried to reset the memory size for SAS, but it failed. I don't know how to do that. It seems that I can not just submit "options memsize=-0m;" directly.

      Thanks.

Best regards

3 REPLIES 3
SteveDenham
Jade | Level 19

I don't think the memory problem is due to the size of the dataset, but due to the complexity of the model.  Can you justify the inclusion of all variables and random effects on a subject matter basis?  Can some be combined or eliminated based on prior knowledge?  Peeling the model down to something much simpler and then adding IV's back in may be the only solution to this.

Steve Denham

TomKari
Onyx | Level 15

Alternately, here's some advice on increasing your memory, in case that helps. Memory is allocated at the start of your SAS session, so you can't increase it during the session. You have to increase it before SAS starts.

First, make sure you know which memory options need to be increased. Second, check what they are currently (you can do this by running PROC OPTIONS).

Next, set up a new shortcut to SAS. Take the startup line out of your exisiting SAS program start icon, it should look something like this:

"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -CONFIG "C:\Program Files\SASHome\SASFoundation\9.3\nls\en\sasv9.cfg"

Add your new memory option(s), so it looks something like this:

"C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -memsize 6G -CONFIG "C:\Program Files\SASHome\SASFoundation\9.3\nls\en\sasv9.cfg"

Start SAS using your new shortcut, and check what SAS is using for memory using PROC OPTIONS. It should reflect your new value.

Tom

SteveDenham
Jade | Level 19

Hi Tom,

I tried this under Windows 7 64 bit.  On restart, I still only had 2 GB memory.  Any possibilities?  Am I going to have to edit the config file as well?

Thanks,

Steve Denham

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1414 views
  • 0 likes
  • 3 in conversation