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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.