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.
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.
Try proc fastclus with instat outstat options.
k-means model(cluster analysis) can't score any of test dataset. That is discrim analysis thing. Check PROC DISCRIM .
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.