Nested ifElse in JASP
Hello,
I would like to know if there is a way to nest multiple ifElse in JASP.
In fact, everything goes smoothly with:
ifElse(Variable = 0, 0, 1).
As soon as i put another ifElse in the Else argument of the first ifElse like this:
ifElse(Variable = 0, 0, ifElse(Variable = 1, 1, 2))
I get a message of error.
To give some context, I am trying to recode a new continuous variable from a nominal text variable. The nominal text variable returns numbers because I have changed the labels, but I still cannot do additions with it. The new continuous variable thus should have only numbers.
Thanks for the support.
Comments
I've forwarded this to our expert
EJ
In the meantime, you can create as many intermediate variables as you need to reach the final result, e.g.: