How to Compute a New Var that is Rank Order of Classification Function Equations

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to Compute a New Var that is Rank Order of Classification Function Equations

Edgar F. Johns
I was wondering if someone could help me create a new set of variables from
six classification function coefficient equation results.



I created a set of classification equations from a sample and want to
calculate the membership of a new sample. I calculate the equations in this
new sample (Pred1-Pred6) and I'd like to rank order these scores for each
subject and create 6 new variables called FIRST, SECOND, THIRD, FOURTH,
FIFTH, SIXTH. These new variables would contain the rank-ordered value of
the equation results.



Here's an example of what I'm looking for. Initially, I calculate the scores
(Pred1-Pred6). I then need to sort the 6 scores for each person and create
the six new variables (First.Sixth) that contains the integer value of 1-6
to indicate the rank ordered position.






Pred1

Pred2

Pred3

Pred4

Pred5

Pred6


S1

121.63

123.92

121.49

115.15

116.58

118.22


S2

96.335

109.041

108.981

89.012

104.545

116.293



















FIRST

SECOND

THIRD

FOURTH

FIFTH

SIXTH


S1

2

1

3

6

5

4


S2

6

2

3

5

1

4



Thanks,

Edgar

---

Edgar Johns | Envision-U

(734) 564-4964