BookmarkSubscribeRSS Feed
fri0
Quartz | Level 8

Hi, I've created a k-means model using SAS Enterprise Guide, but I don't know how to use it to score/clasify another dataset. I'd like to know how to extract the code of the model to use in another query if it's possible. Thanks in advance.

4 REPLIES 4
stat_sas
Ammonite | Level 13

For scoring we use centroids obtained through a clustering algorithm in order to score new observations. This is a two stage process. First save centroids in a data set then use that for scoring new obervations.

fri0
Quartz | Level 8
I can't find any option in clustering node to save the centroids, the output save only cluster and distance. Do you have some pdf, tutorial or link about this?
stat_sas
Ammonite | Level 13

Try proc fastclus with instat outstat options.

Ksharp
Super User

k-means model(cluster analysis) can't score any of test dataset. That is discrim analysis thing. Check PROC DISCRIM .

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 4 replies
  • 1884 views
  • 1 like
  • 3 in conversation