Hello
I have variables where each parent have answered, and now I want to combine these by selecting mothers responses (var_1) where there is and when there's not I want to select fathers (var_2) answers into one computed variable. With mothers variable as priority.
I have the syntax to do this in SPSS, but I can't manage to do it in Jamovi. Have tried IF function and to use "or", but I am doing something wrong.
In SPSS the syntax is:
DO IF (MISSING(var_1)~=1).
COMPUTE computed_newvariable = var_1
ELSE IF (MISSING(var_2)~=1).
COMPUTE computed_newvariable = var_2
ELSE.
COMPUTE computed_newvariable = var_1
Hope someone can help me and would appreciate it very much!
Is there a DO IF/ELSE IF function in jamovi?
Re: Is there a DO IF/ELSE IF function in jamovi?
Hi, @helpme.
Is the suggestion that I am attaching you with the screenshot what you were looking for?
Cheers,
Maurizio
Is the suggestion that I am attaching you with the screenshot what you were looking for?
Cheers,
Maurizio
Re: Is there a DO IF/ELSE IF function in jamovi?
THANK YOU so much!!!!