Recode nominal text to binary variable
Can somebody help me explain, step by step, how to create a new variable in JASP from a nominal text variable (“Male” / “Female”) into a binary 0/1 variable?
All the best,
Per – the JASP lover ❤️
Can somebody help me explain, step by step, how to create a new variable in JASP from a nominal text variable (“Male” / “Female”) into a binary 0/1 variable?
All the best,
Per – the JASP lover ❤️
Comments
My LLM gives a pretty extensive answer -- have you tried?
EJ
Yes it did very good. Thank you. Do you use LLM integrated in JASP or a one beside (such as ChatGPT or Co-pilot)?
Hi,
It looks like you've already solved this, but in case someone else stumbles upon this question in the future, here is one way to do this:
Scale, and specify `Computed with drag and drop`.ifElse(y), and drag it into the area=from the above the computed column field into the `test` area.Cheers,
Don
Here's another way, using 'Computed with R code':
R