//
//K-means command
//
//This command makes segmentation of numeric data.
//

//Syntax 
kmeans [variables] by [number of segment]; 


//Example 1
get iris.csv@;


//Plot datas by Species plot scat SepalL SepalW PetalL by Species;

//Execute 3D data by 3 segment kmeans SepalL SepalW PetalL PetalW by 3; //View output of kmeans; get freq@ana; //Variable seg is segment number. so this is instructed by option 'code'; plot scat SepalL SepalW PetalL by seg/ seg:code ;

This plot shows good segmentation comparing of plot by Species.