Convert Alphanumeric variable into Numerical Variable
Posted: Sun Jan 12, 2014 12:20 pm
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.
How can I achieve this in eviews? Another forum suggested the @val function, but I cannot figure out how this works.