Dear Statalist fellows
I would like to create a new variable with the 2nd highest value from a list of 14 variables. These variables are continuous and specify the individidual's time with some condition.
How I can perform this selection?
I didn't find similar explanation on the problem in previous posts. Please let me know if a post already discussed this problem.
Best, Bruno.
I would like to create a new variable with the 2nd highest value from a list of 14 variables. These variables are continuous and specify the individidual's time with some condition.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(a b c d e f g h i j k l m n) .5 .5 .5 .5 .5 . . . . . . . . .5 .5 .5 .5 .5 . . . 37 . . . . . . .5 .5 .5 . . .5 10 . . . . . . . .5 .5 .5 . . 24 . . . . . . . 20 .5 .5 .5 . . . . . . . . . . . .5 .5 .5 . . . . . . . . . . . .5 .5 .5 . . . . . . . . . . . .5 .5 1 . . . . . . . . . . . .5 .5 19 . . . 24 . . . . . . . .5 .5 . 1 1 . . . . . . . . . end
I didn't find similar explanation on the problem in previous posts. Please let me know if a post already discussed this problem.
Best, Bruno.
Comment