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.
Convert Alphanumeric variable into Numerical Variable
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
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
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
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.
Who is online
Users browsing this forum: No registered users and 2 guests
