- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-12-2020 09:33 AM
(2311 views)
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!
Rogerio Alves
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The range is actually the difference between max and min so 64831 - (-20413) = 85244
Best,
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I got you! You'r right, I was with a wrong concept about RANGE could be.
Thanks a lot to explain.
Appreciate.
Rogerio Alves
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I got you! Thanks a lot!
Rogerio Alves