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 .

sas-innovate-2024.png

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.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1151 views
  • 1 like
  • 3 in conversation