Hello together,
I hope to find help here. I tried to type in the "arg max" function which is supposed to select the maximum of a number of variables and to display the maximum with the name of the variable and not the value itself. Unfortunately, it doesn't work in Jamovi. Does anyone know which function I have to use in Jamovi?
Thanks for your help.
Arg Max
Re: Arg Max
hi,
i don't think there's a straight-forward way to achieve that in jamovi. some nested IF statements is probably your best option -- but i appreciate it's not terrible elegant.
i don't think there's a straight-forward way to achieve that in jamovi. some nested IF statements is probably your best option -- but i appreciate it's not terrible elegant.
- mcfanda@gmail.com
- Posts: 460
- Joined: Thu Mar 23, 2017 9:24 pm
Re: Arg Max
Hi
you can try
=MATCH(MAX(A,B,C),A,B,C)
This will return the index of the variable containing the max (with 1=A,2=B,3=C, etc)
you can try
=MATCH(MAX(A,B,C),A,B,C)
This will return the index of the variable containing the max (with 1=A,2=B,3=C, etc)
Re: Arg Max
oh, that's a good suggestion ... and then if you really wanted the 'A', 'B', 'C' thing, you could recode *that* variable into 1='A', 2='B', 3='C'
jonathon
jonathon
Re: Arg Max
Thanks a lot to both of you! That worked perfectly fine.