Page 1 of 1

Coding String/Character series as Numeric

Posted: Mon May 23, 2016 8:24 pm
by Chthoniid
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

Re: Coding String/Character series as Numeric

Posted: Mon May 23, 2016 8:43 pm
by EViews Gareth
Look at the valmap object

Re: Coding String/Character series as Numeric

Posted: Tue May 24, 2016 9:41 am
by EViews Glenn
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

Posted: Tue May 24, 2016 5:11 pm
by Chthoniid
Excellent- the proc/map is beautifully simple