Hi all,
Hoping for some help transforming a list of ~ 137 codes into 4 buckets, say A, B, C and unknown. While the codes are numbers they are nominal in nature and in no specific order (so I can just say if less than 50 use A for example). So, last night I started doing this with individual recode conditions but after about my 15th one I decided to try an "or" function on the if side which seemed to work when I briefly tested it. I then went on to to write just a few more lengthy recode conditions to the effect of:
if $source == "1" or "7" or "12"..... use 'group A'
Unfortunately, when I finished this whole process it put everyone in Group A. I'm not sure how/why but hoping someone can help with this.
Thanks so much!
Jamovi newbie Xavier
help with nominal variable transformation issue
Re: help with nominal variable transformation issue
it needs to be
if $source == 1 or $source == 7 or $source == 12 ...
but you can just go
if $source < 50
if $source == 1 or $source == 7 or $source == 12 ...
but you can just go
if $source < 50
Re: help with nominal variable transformation issue
Thank you so much! Unfortunately it wasn't something like age where I could use < for > functions but adding in the "or $source ==" syntax did the trick.
Thanks again!
Thanks again!