Creation of a new variable on the basis of two variables

Discuss statistics related things
Post Reply
fabstat
Posts: 8
Joined: Fri Feb 01, 2019 7:49 am

Creation of a new variable on the basis of two variables

Post 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.
sbalci
Posts: 125
Joined: Sat Jan 06, 2018 10:25 pm
Contact:

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

Post by sbalci »

please try transforming and recoding options:
https://blog.jamovi.org/2018/10/23/transforming-variables.html
Post Reply