I am trying to make a new variable that shows if people have a higher value in one variable than another.
For example, ideally I would have

var1 var2 var3
0 0 .
2 0 1
2 2 .
4 17 0
5 1 1
3 5 0

Is there an egen command that allows this?

Thanks!

Tori