Creation of a new variable on the basis of two variables
Posted: Fri Sep 04, 2020 1:34 pm
Dear colleagues,
I would like to create a new categorical variable (VarC) that results from logical functions on two continuous variables (varA ant VarB).
If VarA < c1 and VarB < c2, then VarC=1
If VarA >= c1 and VarB < c2, then VarC=2
If VarA < c1 and VarB >= c2, then VarC=3
If VarA >= c1 and VarB >= c2, then VarC=4
Is it possible to do this in Jamovi?
Any advice much appreciated.
I would like to create a new categorical variable (VarC) that results from logical functions on two continuous variables (varA ant VarB).
If VarA < c1 and VarB < c2, then VarC=1
If VarA >= c1 and VarB < c2, then VarC=2
If VarA < c1 and VarB >= c2, then VarC=3
If VarA >= c1 and VarB >= c2, then VarC=4
Is it possible to do this in Jamovi?
Any advice much appreciated.