I've got a data series that is just a list of village names in PNG. I'd like to assign each one a unique numeric code (to make programming For/NEXT loops easier).
So Village A gets value of 1, village B 2, Village C 3 etc.
I'm just not seeing in programming or command reference how to achieve this...
TIA
B
Coding String/Character series as Numeric
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13584
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Coding String/Character series as Numeric
Look at the valmap object
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: Coding String/Character series as Numeric
And to that end, the alpha series that you have will have a Proc/Make mapped series which will create the numeric series and valmap automatically.
Re: Coding String/Character series as Numeric
Excellent- the proc/map is beautifully simple
Who is online
Users browsing this forum: No registered users and 1 guest
