for loop and Visualisation

For questions regarding programming in the EViews programming language.

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

questionmaster
Posts: 5
Joined: Mon Aug 04, 2014 12:18 pm

for loop and Visualisation

Postby questionmaster » Sat Sep 27, 2014 1:04 am

Dear EViews users,
i use EViews7 and i'm relatively new in EViews, why my question are relativly basics. I want to make a visualisation of the line graphs of imm_stock (stock of immigrants) in Germany from Eastern Europe Countries BG EE LV LT PL RO SK SI CZ HU over a time period (1998-2012). First of all i tried it with the following commands:

smpl if ctr_o="PL" and ctr_d="DE"
graph PL_DE.line imm_stock
smpl @all

smpl if ctr_o="RO" and ctr_d="DE"
graph RO_DE.line imm_stock
smpl @all

...and so on. But there is also a possibility to use a for-loop, right? I tried it with the following command, but it doesn't work.

for %ctr_o BG EE LV LT PL RO SK SI CZ HU
smpl if ctr_d="DE"
graph imm_{%ctr}_DE.line imm_stock
next

I also would like to have the 10 graphs in one picture like in the attached picture2. Does anybody know how it might work?
Thank you very much in advance!!
Attachments
picture2.jpg
picture2.jpg (34.9 KiB) Viewed 1913 times
vis.wf1
(963.85 KiB) Downloaded 204 times

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest