Programming the statistical procedures from SAS

How to get centroid value in proc fastclus

Reply
Super Contributor
Posts: 266

How to get centroid value in proc fastclus

Hi All,

 

I am using proc fastclus to do the cluster analysis, but i need value of centroid too.

is there any possiblity to get centroid value using proc fastclus.

 

Thanks in Advance.

 

Super User
Posts: 9,779

Re: How to get centroid value in proc fastclus

Documentation said OUTSTAT= dataset contain centroid .

 

proc fastclus data=sashelp.iris  outstat=want distance
maxclusters=3 maxiter=100;
var _numeric_;
run;
proc print data=want;run;

 

x.png

Super Contributor
Posts: 266

Re: How to get centroid value in proc fastclus

Hi, 

 

Thanks for reply.

 

But its centroid for variables, i am not able to find out over_all centroid,, does final seeds  also called as over_all centroid??

 

Thanks in Advance 

Super User
Posts: 10,880

Re: How to get centroid value in proc fastclus

Each of the variables in effect is a separate dimension. The overal centroid would be the point with coordinates corresponding to the centroid of each dimension.

Super User
Posts: 9,779

Re: How to get centroid value in proc fastclus

Honestly ,I don't know what is your mean . 

Change it into one cluster ?

maxclusters=1
Super Contributor
Posts: 266

Re: How to get centroid value in proc fastclus

In your output{snapshot provided by you in ur answer} , visible that center value for over_all is missing. I am looking for that value. what would be that value if i want to know that. 

 

Thanks in advance.

Super User
Posts: 9,779

Re: How to get centroid value in proc fastclus

But That doesn't make any sense, Maybe you could PROC TRANSPOSE it .

Or are you looking for proc varclus ?

Ask a Question
Discussion stats
  • 6 replies
  • 361 views
  • 0 likes
  • 3 in conversation