* Read in the data;
DATA one;
Infile
'a:rawdata.dat; /*you need to save data first
and then read it in;
Input v1-v11;
id =
_n_; /*Create an id variable;
RUN;
* Create dissimilarity matrix between variables;
PROC transpose Data=one Out=out ;
Var v1-v11;
RUN;
%INCLUDE 'C:\program files\SAS
institute\sas\v8\STAT\SAMPLE\xmacro.SAS';
%INCLUDE 'C:\program files\SAS
institute\sas\v8\STAT\SAMPLE\distnew.SAS';
%INCLUDE 'C:\program files\SAS
institute\sas\v8\STAT\SAMPLE\stdize.SAS';
%DISTANCE ( DATA=out,
METHOD=EUCLID, Id=_name_,
OUT=two );
RUN;
* Perform MDS analysis.
PROC MDS
Data=two Coef=i Dec=2dim=2Formula=1Level=ordinal Fit=2
Condition=MATRIX Shape=SQUARE
Nop Pfinal Out=coord;
RUN;