BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Prest
Fluorite | Level 6
Hello

I am running Proc surveyreg on 9253 observations and a class variable of 4 levels. I am trying to perform an ANOVA test to compare mean across those levels.

However, I get the error "This procedure was cancelled due to insufficient memory".

What should I do? Any help is appreciated.
1 ACCEPTED SOLUTION

Accepted Solutions
Criptic
Lapis Lazuli | Level 10

Run the following to determine the MEMSIZE

data _null_;
    FREERAM_MB=input(getoption('xmrlmem'),20.)/1024/1024;
    put FREERAM_MB= 8.;
run;

proc options group=memory; run;

In my eyes your MEMSIZE is most likely to small - talk to your Admins about it

View solution in original post

3 REPLIES 3
Criptic
Lapis Lazuli | Level 10

Run the following to determine the MEMSIZE

data _null_;
    FREERAM_MB=input(getoption('xmrlmem'),20.)/1024/1024;
    put FREERAM_MB= 8.;
run;

proc options group=memory; run;

In my eyes your MEMSIZE is most likely to small - talk to your Admins about it

Rick_SAS
SAS Super FREQ

You are describing a very small problem.

1. Please post the exact code you are submitting, including options

2. Please run the following code on simulated data and tell us if it runs successfully

 

data Have;
call streaminit(123);
do i = 1 to 9253;
   group = rand('Table', 0.3, 0.3, 0.2, 0.2); /* group = 1, 2, 3 or 4 */
   Y = 10 + group + rand('Normal');
   output;
end;
run;

proc surveyreg data=Have;
   cluster Group;
   model Y = Group;
run;
Prest
Fluorite | Level 6

Thank you so much for your effort

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 890 views
  • 0 likes
  • 3 in conversation