Dear All, Suppose that I have
For each row, the desired variable x is the element among v1, v2 and v3 with the smallest "absolute" value. Any suggestions? Thanks.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(id v1 v2 v3 x) 1 -1 3 -2 -1 2 2 1 -3 1 3 3 -2 4 2 end
Comment