Page 1 of 1

alphanumeric to numeric

Posted: Sat Mar 05, 2016 6:42 am
by LucaEviews
We have data about gender called 'female' in which we have female and male. We want to make this alphanumeric values numeric.
We already used valmap: female has the label 1 and male has label 0. In this way we could converse female to 0 and 1. The problem is Eviews don't recognize this 0 and 1 as numeric, but recognizes it as alphanumeric. We have to multiply this values, but right know it doesn't work because you can't multiply a string I guess. How can we solve this problem?

Re: alphanumeric to numeric

Posted: Sat Mar 05, 2016 7:08 am
by startz
@recode(gender="female",1,0)