Create a new structure that looks like:
x1 x2 .. etc
obj1 .. ..
obj2 .. ..
obj3 .. ..
... ..
etc ..
and work from there.
Good luck, Frank.
________________________________
From: SPSSX(r) Discussion on behalf of Homayoun
Sent: Fri 26/01/2007 15:36
To:
[hidden email]
Subject: Re: MDS map: proximities and Euclidean distances
Hi Frank,
Thank you for the syntax. Actually my data structure for case of two objects is like:
Object 1 Object2
x1 y1 x2 y2
To find the distance between these two objects, I can write distance formula in syntax. However, suppose I have 5 objects, and want to find the distance between pair of objects (10 pairs). I wonder if there is an easy way in SPSS to find distance matrix of pairs.
Thanks,
Homayoun
----- Original Message ----
From: "Busing, Frank" <
[hidden email]>
To:
[hidden email]
Sent: Thursday, January 25, 2007 8:11:28 AM
Subject: MDS map: proximities and Euclidean distances
Dear Homayoun.
I thinks it must be something like this:
DATA
X Y
1,00 5,00
2,00 6,00
3,00 7,00
4,00 8,00
PROXIMITIES X Y
/VIEW = CASE
/MEASURE = EUCLID
/STANDARDIZE = NONE.
RESULTS
Proximity Matrix
Euclidean Distance
1 2 3 4
1 ,000 1,414 2,828 4,243
2 1,414 ,000 1,414 2,828
3 2,828 1,414 ,000 1,414
4 4,243 2,828 1,414 ,000
This is a dissimilarity matrix
The subcommand computes the Euclidean distance between cases,
containing two variables X and Y,
and returns a distance matrix.
Good luck, Frank.
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com <
http://mail.yahoo.com/>