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

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

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
  • 1004 views
  • 0 likes
  • 3 in conversation