BookmarkSubscribeRSS Feed
monster90
Calcite | Level 5

Hi guys,

 

If I use proc rank with grouping function, what is the different between this method and the k mean clustering method?

Actually i do not see any other differentiation only that with using proc rank (with group) the procedure wants to divide the groups in equal part...

Thanks your answer,

Steve

2 REPLIES 2
mkeintz
PROC Star

I won't comment on k-means clustering method, but ...

 

  1. proc rank cares about order, but not distance, however distance is defined.  And of course this is associated with only permitting equal-size groups.

  2. proc rank doesn't do multi-dimensional "clustering", however defined.  I presume the clustering method does do multi-dimensional.

 

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
PaigeMiller
Diamond | Level 26

PROC RANK computes ranks on individual variables.

 

K-mean clusters finds groupings of observations in your data set using multiple variables.

 

These don't do the same things.

--
Paige Miller

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 2 replies
  • 912 views
  • 0 likes
  • 3 in conversation