Page 1 of 1

for loop and Visualisation

Posted: Sat Sep 27, 2014 1:04 am
by questionmaster
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!!