[SOLVED] Convert binominal to numeric?
I have several binomial attributes, on which I wish to run linear regression.
So I must convert these binomial attributes with values "true" and "false" to real attributes with values "1" and "0".
How can I do this?
I tried the generate attributes operator but this did not work.
I used the following settings:
attribute name: myNewAtt
functional expression: if(myAtt == true, 1, 0)
Even though this expression is functionally correct, it always returns 0.