Hi everybody,
I'm using the PROC MEANS in order to get the MIN, MAX, RANGE and MEAN of a group of values. The MIN, MAX and MEAN returns well but for RANGE was returned the SUM of MIN and MAX values.
This is my code:
proc means data=TBL min max mean range maxdec=0 ;
class ano local categoria;
var valor;
run;
The result I've got:
The SAS Guide information:
Tks to help!
The range is actually the difference between max and min so 64831 - (-20413) = 85244
Best,
Hi, I got you! You'r right, I was with a wrong concept about RANGE could be.
Thanks a lot to explain.
Appreciate.
Given what you have shown us, what did you expect the range to be?
Also note that the sum of 64831 and -20413 is 44418.
I got you! Thanks a lot!
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.