Value map problem

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

wstevena
Posts: 1
Joined: Tue Jun 14, 2016 5:06 am

Value map problem

Postby wstevena » Fri Sep 16, 2016 12:26 pm

I am trying to create different smpl starting dates for each series so that I can merge them with the appropriate other series. The value map works ok as long as I use the text directly.

valmap b
b.append usa 2012q1
b.append france 2011q3
b.append germ 2010q4

alpha start = @map("usa",b)

If I do:

%try = "usa"
alpha start = @map(%try,b)

it still works.

However If I do:

group g3 usa
%try = g3.@seriesname(1)
alpha start = @map(%try,b)

It no longer works. What do I need to do to get the correct input for the map function?

I am using Eviews 8 on a Windows 7 machine.

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

Re: Value map problem

Postby EViews Gareth » Fri Sep 16, 2016 2:05 pm

It might be a case issue. How about:

Code: Select all

%try = @lower(g3.@seriesname(1))


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests