Programming the statistical procedures from SAS

One question about proc distance

Reply
Contributor
Posts: 49

One question about proc distance

If I have six variables, five of them are ratio variables and one is ordinal variable. How to calculate distance matrix using method=Dcorr? Can I write the codes as below?

proc distance data=have method=dCORR RANKSCORE=MIDRANK out=ProximityMatrix;

   var ratio(x1--x5);

   var ordinal(x6);

   id qn_n;

run;

Is this correct?

What's the mathematical background behind this?

Thanks in advance.

Ask a Question
Discussion stats
  • 0 replies
  • 122 views
  • 0 likes
  • 1 in conversation