Re: Compute new variables
Posted: Wed Sep 27, 2017 3:59 pm
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
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