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 .
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.