BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Phil_NZ
Barite | Level 11

Hi all, 

 

When running the proc means to a dataset, I face a normal problem that

WARNING: A shortage of memory has caused the quantile computations to terminate prematurely for QMETHOD=OS. Consider using 
         QMETHOD=P2.

In particular, while all of the summary characteristics work, only median spot the "." in my result with the normal PROC MEANS

proc means data=merge_treat_con n nmiss mean median std min max skew kurt;
run;

My97_0-1614203750067.png

When I use the option QMETHOD=P2

proc means data=merge_treat_con n nmiss mean median std min max skew kurt qmethod=p2;
run;

My97_1-1614203846575.png

 

And a quick comparison between these two Tables of the result, it seems that they only differ in the "median" column, so I deem that option qmethod=p2 only affects the unsolvable column while using proc means without this option, other results would remain the same.

 

Could you please let me know if I fell into any fallacy?

 

Warm regards.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
QMETHOD affects only the percentiles. So anything related to quartiles or percentiles are affected. In the statistics you've chosen to display that would only be the median but the first and third quartiles would also be affected.

View solution in original post

5 REPLIES 5
Reeza
Super User
QMETHOD affects only the percentiles. So anything related to quartiles or percentiles are affected. In the statistics you've chosen to display that would only be the median but the first and third quartiles would also be affected.
Phil_NZ
Barite | Level 11

Hi @Reeza 

 

Thank you for your reply, so it also means that the 1st and 99th percentile also been affected, am I correct? Just want to cross-check if it is the case.

 

Regards.

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
Reeza
Super User
Yes, they can be affected, they may not be though that's the catch.
Phil_NZ
Barite | Level 11

Hi @Reeza 

 

So, you mean, they either can or can't be affected, is it your point?

 

Warm regards,

Thank you for your help, have a fabulous and productive day! I am a novice today, but someday when I accumulate enough knowledge, I can help others in my capacity.
ballardw
Super User

@Phil_NZ wrote:

Hi @Reeza 

 

Thank you for your reply, so it also means that the 1st and 99th percentile also been affected, am I correct? Just want to cross-check if it is the case.

 

Regards.


The documentation says:

  When QMETHOD=P2, reliable estimations of some quantiles (P1,P5,P95,P99) might not be possible for some data sets.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 3158 views
  • 4 likes
  • 3 in conversation