Nested ifElse in JASP
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.