Convert Alphanumeric variable into Numerical Variable

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

student1
Posts: 1
Joined: Sun Jan 12, 2014 12:14 pm

Convert Alphanumeric variable into Numerical Variable

Postby student1 » 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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Convert Alphanumeric variable into Numerical Variable

Postby EViews Gareth » Sun Jan 12, 2014 12:50 pm

Lookup valmaps in the user guide

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Convert Alphanumeric variable into Numerical Variable

Postby EViews Glenn » Mon Jan 13, 2014 1:13 pm

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.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests