Page 1 of 1

Creation of a new variable on the basis of two variables

Posted: Fri Sep 04, 2020 1:34 pm
by fabstat
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.

Re: Creation of a new variable on the basis of two variables

Posted: Fri Sep 04, 2020 3:45 pm
by sbalci
please try transforming and recoding options:
https://blog.jamovi.org/2018/10/23/transforming-variables.html