Hi, I have a problem with calculating distance between observations, which is the variable model. Each observation contains 5 coordinate points, {fxi,fyi}, i=1 to 5; The dataset as following, is there any macro or for loop can do the calculation? Thanks! obs model fx1 fy1 fx2 fy2 fx3 fy3 fx4 fy4 fx5 fy5 1 a 129 16.5 129 22.25 129 59.75 129 90.75 129 112.25 2 b 156.9375 18 156.9375 26.5 156.9375 69 156.9375 109.5 156.9375 137 3 c 140 26 140 31 140 76.5 140 116 140 142.75 4 d 109.7188 24 109.7188 29.5 109.7188 53.75 109.7188 87 109.7188 100.25 5 e 145.5 7 145.5 11.5 145.5 46.5 145.5 90 145.5 110.5 6 f 94.28125 15 94.28125 19.5 94.28125 47.5 94.28125 91.25 94.28125 111.25 7 g 150 28.5 150 34 150 83 150 126 150 172 8 a 147 9.5 147 17 147 62 147 102.5 147 141 9 b 91.4375 12.75 91.4375 17.75 91.4375 48.5 91.4375 82.75 91.4375 89.25 10 c 106.3438 2.25 106.3438 4.75 106.3438 34.5 106.3438 57.5 106.3438 78 11 d 130.9375 9.75 130.9375 14.75 130.9375 51.5 130.9375 79.5 130.9375 99.5 12 e 143.5625 21.5 143.5625 26.5 143.5625 74 143.5625 119.5 143.5625 142
... View more