I have a list of 9 variables with numerical data and want to create a syntax that will look at all 9, line by line, and select the 3 greatest values then plug those values into an equation. Since I don't need just the maximum value and some of the largest values are likely to be the same I'm not sure how to define that piece. Could anyone help me figure out how to do this.
What makes sense to me is to (1) generate 3 new variables from the list to reflect those values (2) generate the final variable using an equation of the previously defined new 3.
Thanks for any insight!
What makes sense to me is to (1) generate 3 new variables from the list to reflect those values (2) generate the final variable using an equation of the previously defined new 3.
Thanks for any insight!
Comment