Hi everyone , when I try to compute a new variable called "low Vit D-low iron" using this formula: if(VitD_recoded==0 & iron_recoded==0, 1, 0), Jamovi says "the formula is mis-specified". Do you know how can I let this formula work?
I have already tried these other options:
if(VitD_recoded==0 and iron_recoded==0, 1, 0),
IF(VitD_recoded==0 & iron_recoded==0, 1, 0),
Iif(VitD_recoded==0 AND iron_recoded==0, 1, 0).
Thank you so so much for your help,
Claire
Formula is mis-specified
Re: Formula is mis-specified
Hey @ClaireCups,
you were almost there (here it is):
Cheers,
Maurizio
you were almost there (here it is):
Code: Select all
IF(VitD_recoded==0 and iron_recoded==0, 1, 0)
Maurizio
-
- Posts: 4
- Joined: Tue Mar 14, 2023 7:37 pm
Re: Formula is mis-specified
Thank you so much, @MAgojam , it worked!!
Cheers and thanks again,
Claire
Cheers and thanks again,
Claire