I want to create new variable based on row maximum of three variables (employment duration) so that this new variable takes value equal to the name (or number) of the variable for which rmax command finds maximum. Please see the picture for example. In this case in the fourth row the maximum is 10.249878 for variable empdur_cl2 so I want to assign value of 2 to the newly created variable. Hope you'll help me to sort it out
Thanks
Kris
Thanks
Kris
Comment