Page 1 of 1
Value Maps
Posted: Sat Aug 22, 2015 4:28 am
by Redwing153
Hello
I find Value Maps very useful, but I am wondering is there a way to create a value map from two alpha series;
In a similar manner one can create a string object=@wjoin(@convert(seriesname)) - can one do something similar with value maps?
Many thanks all.
RW
Re: Value Maps
Posted: Sat Aug 22, 2015 1:06 pm
by EViews Gareth
Look up alpha.makemap in the Alpha section of Chapter 1 of the Object Reference PDF (available from Help menu).
Re: Value Maps
Posted: Sat Aug 22, 2015 3:14 pm
by Redwing153
Thanks. I have investigated that already and (unless I'm missing something, which is entirely possible) it won't allow to make many to one mappings.
In addition, I'm always stuck with an observation number on the left hand side, whereas I want the left hand side to be one of my series.
What would be ideal (or rather easy) would be a program routine that enables me to copy and paste into a valmap, which is currently the way I am trying to solve it.
Thanks anyway.
RW
Re: Value Maps
Posted: Sat Aug 22, 2015 3:42 pm
by EViews Gareth
I'm a little lost as to what you're trying to do then. What do you mean by create a value map out of two alpha series?
Re: Value Maps
Posted: Sun Aug 23, 2015 6:17 am
by Redwing153
Thanks.
So both the value and label in my value map will be text ; the text in both cases is generated from an alpha series, which is separately maintained.
This program is close to what I want, but I've had to substitute hyphens into the text (the text contains a number of 'int' elements) as the string is space delimited.
Code: Select all
for !i=1 to 25
smpl {!i} {!i}
string1=@wdelim(@last(ticker)," ","-")
string2=@wdelim(@last(region)," ","-")
mymap.append {series1} {series2}
next
Thanks.
Re: Value Maps
Posted: Sun Aug 23, 2015 8:53 am
by EViews Gareth
I see. I don't think you can make that happen.