Desktop productivity for business analysts and programmers

How to use a model for another dataset in SAS Guide

Reply
Contributor
Posts: 58

How to use a model for another dataset in SAS Guide

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.

Trusted Advisor
Posts: 1,203

Re: How to use a model for another dataset in SAS Guide

[ Edited ]

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.

Contributor
Posts: 58

Re: How to use a model for another dataset in SAS Guide

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?
Trusted Advisor
Posts: 1,203

Re: How to use a model for another dataset in SAS Guide

Try proc fastclus with instat outstat options.

Grand Advisor
Posts: 9,576

Re: How to use a model for another dataset in SAS Guide

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

Ask a Question
Discussion stats
  • 4 replies
  • 256 views
  • 1 like
  • 3 in conversation