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 .
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.