Clustering Time Series
/*--------------------------------------------------------------
SAS Sample Library
Name: smyex05.sas
Description: Example program from SAS/ETS User's Guide,
The SIMILARITY Procedure
Title: Clustering Time Series
Product: SAS/ETS Software
Keys: similarity measures, time-stamped data, clustering
PROC: SIMILARITY
Notes:
--------------------------------------------------------------*/
ods graphics on;
proc similarity data=sashelp.applianc out=_null_ outsum=simmatrix;
target units_1--units_24 / measure=mabsdev normalize=absolute;
run;
proc cluster data=simmatrix(drop=_status_) outtree=tree method=ward plots=dendrogram;
id _input_;
run;