Page 1 of 1

Convert Alphanumeric variable into Numerical Variable

Posted: Sun Jan 12, 2014 12:20 pm
by student1
I have a categorical variable labeled "education" which assigns "high school" or "college" to each observation to indicate level of education achieved (I'm simplifying the coding for the sake of explanation). I want to convert "high school" to the value 1 and "college" to the value 2.

How can I achieve this in eviews? Another forum suggested the @val function, but I cannot figure out how this works.

Re: Convert Alphanumeric variable into Numerical Variable

Posted: Sun Jan 12, 2014 12:50 pm
by EViews Gareth
Lookup valmaps in the user guide

Re: Convert Alphanumeric variable into Numerical Variable

Posted: Mon Jan 13, 2014 1:13 pm
by EViews Glenn
There's also a Proc/Make Mapped Series off of an alpha series that will automatically make a numeric series with an attached value map.