New nominal variable from two dichotomous variables?
Posted: Tue Jul 06, 2021 8:57 am
Hello all,
I recently came across Jamovi and am very happy with it. However, as part of my research, I ran into a problem that I could not solve myself through trial and error. So I wanted to ask if it is possible to compute a new nominal variable from two dichotomous variables. In the specific case, the two variables are: Anorexia nervosa (1=yes, 2=no) and atypical anorexia nervosa (1=yes, 2=no). I would now like to compute a new variable with (1= Anorexia nervosa, 2= Atypical anorexia nervosa, 3= No anorexia nervosa).
To my limited understanding, this should be logically possible since all AN, atyp AN and no AN are mutually exclusive.
I tried using the filter code, but unfortunately I did not succeed.
IF(AN==1, atypAN==2) gives me all cases with AN.
IF(AtypAN==1, AN==2) gives me all cases with atypical AN.
But somehow I can't combine these two codes together.
Is it possible to compute a new nominal variable from two dichotomous variables?
Thanks a lot!
I recently came across Jamovi and am very happy with it. However, as part of my research, I ran into a problem that I could not solve myself through trial and error. So I wanted to ask if it is possible to compute a new nominal variable from two dichotomous variables. In the specific case, the two variables are: Anorexia nervosa (1=yes, 2=no) and atypical anorexia nervosa (1=yes, 2=no). I would now like to compute a new variable with (1= Anorexia nervosa, 2= Atypical anorexia nervosa, 3= No anorexia nervosa).
To my limited understanding, this should be logically possible since all AN, atyp AN and no AN are mutually exclusive.
I tried using the filter code, but unfortunately I did not succeed.
IF(AN==1, atypAN==2) gives me all cases with AN.
IF(AtypAN==1, AN==2) gives me all cases with atypical AN.
But somehow I can't combine these two codes together.
Is it possible to compute a new nominal variable from two dichotomous variables?
Thanks a lot!