I need to get predicted marginals and SEs for multiple variables by year to evaluate trend. Below is part of the code that I extracted from the macro to keep it simple. I am posting part of the code where I see the error of insufficient memory error. Unfortunately I am unable to use option MEMSIZE=MAX since I am running SAS/SUDAAN in virtual desktop. Also using vitual memory option (USEVMEM=1) in the code.
CODE:
OPTION MRECALL stimer fullstimer ;
Proc rlogist data=One design=wr filetype=sas est_no=230000 usevmem=1 noprint;
Nest Yr stratum psu/psulevel=3 missunit;
Weight weight;
Model X1= S R G Yr R*Yr;
Class S R G Yr;
Pedmarg R*Yr;
Test waldf;
Output predmrg seprdmrg/filename=X1 replace filetype=sas predmrg=f12.4 predmrg=f7.2;
Run;
ERROR:
Any guidance would be appreciated. Thanks in advance.
Can you increase the amount of memory that your virtual machine has access to? That should be an option in the machine settings.
Please post your MEMSIZE setting:
proc options option = memsize;
run;
The memory usage in your post isn't large and the PROC appears to fail before full initialising.
What is the memory setting for your VM?
Memory usage below:
proc options option = memsize; run;
MEMSIZE = 2147483648
Detailed memory usage:
Proc options group=memory; run;
A MEMSIZE of 2GB is small in my experience, especially for statistics procedures. The current setting in our SAS installation is 6GB. I'm fairly convinced you wont make any progress until your VM has at least 8GB and you increase your MEMSIZE to at least 4 or 6 GB. Talk to your SAS administrator about getting an increase.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.