Hello,
heres hoping this is not super basic but im severely stuck.
I want create a dummy that indicates whether the variable v1 has the second highest/n highest value among the variables v1, v2, v3 and v4 within the same observation. There are possibly ties between v1, v2 and v3.
Thus far i tried rank in egen and rowsort but they seem not to do what i want to achieve. Where do i go from here?
Thank you so much for your time!
heres hoping this is not super basic but im severely stuck.
I want create a dummy that indicates whether the variable v1 has the second highest/n highest value among the variables v1, v2, v3 and v4 within the same observation. There are possibly ties between v1, v2 and v3.
Thus far i tried rank in egen and rowsort but they seem not to do what i want to achieve. Where do i go from here?
Thank you so much for your time!
Comment