Page 2 of 2

Re: Compute new variables

Posted: Wed Sep 27, 2017 3:59 pm
by vmoreno
Hi,
This is very helpful.
I suggest adding the possibility to work with logical expressions.
For example, to recode a categorical variable to binary we could compute (var == "value") to get TRUE/FALSE for the value of interest or (var == "value")*1 to get 1/0 values

Also to categorize a continuous variable, for example with cutoff 10: (var > 10)

Thanks

Victor

Re: Compute new variables

Posted: Wed Sep 27, 2017 10:59 pm
by jonathon
hi victor,

yup, we've been thinking about this. we're going to add a 'recode' facility which will handle a lot of these cases, but we've also been thinking about an IFELSE() (for example) formula too.

cheers

Re: Compute new variables

Posted: Fri Dec 01, 2017 9:22 pm
by dfareri
Hi,
I notice that there is a way to perform certain computations (i.e., z score, log transform); but is there anything in jamovi that allows for computing a difference score between 2 variables for all cases (i.e., participants)?
thanks,
dominic

Re: Compute new variables

Posted: Sun Dec 03, 2017 10:48 am
by Ravi
Hi Dominic,

Yes, that is pretty easy actually. You can just go:

Code: Select all

var1 - var2
You can just use normal formula operators in computed variables

Cheers