Creation of a new variable on the basis of two variables

Discuss statistics related things

by fabstat » 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.
fabstat
 
Posts: 2
Joined: Fri Feb 01, 2019 7:49 am

by sbalci » Fri Sep 04, 2020 3:45 pm

please try transforming and recoding options:
https://blog.jamovi.org/2018/10/23/transforming-variables.html
sbalci
 
Posts: 47
Joined: Sat Jan 06, 2018 10:25 pm


Return to Statistics