Help using Base SAS procedures

re: Proc Cluster

Reply
Regular Contributor
Posts: 229

re: Proc Cluster


Hi....I am using the Proc Cluster analysis to group some data and would like to select, if it is possible, the Number of Clusters (NCL) based on the maximum value from the CCC. I am able to create a SAS Report and wondering if it is possible to work from the Cluster History Table that is generated in the Report. Thanks in advance.

Super Contributor
Posts: 490

Re: re: Proc Cluster

what do you mean by working from the cluster history table?

Super User
Posts: 11,343

Re: re: Proc Cluster

You can create a dataset with the contents of the Cluster History Table using the ODS SELECT statement.

Add:

ods select ClusterHistory= yourlib.yourdataset; to the procedure syntax.

After that there are many ways to select the record with the largest CCC.

Regular Contributor
Posts: 229

Re: re: Proc Cluster

Hi Ballardw.....Thank you for your help. I ended up having to use  the statement " ods output ClusterHistory=ClusterHistory"  rather than select which created the dataset I wanted. Thanks once again.

Ask a Question
Discussion stats
  • 3 replies
  • 214 views
  • 3 likes
  • 3 in conversation