display graphs in a for loop

For questions regarding programming in the EViews programming language.

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

epeter
Posts: 16
Joined: Wed May 28, 2014 1:59 am

display graphs in a for loop

Postby epeter » Thu Jan 29, 2015 4:02 am

Hi everyone and thank you all for your support.
I apologize in advance for my poor english. I hope you can understand.

I have a matrix(9,55) with annual (9 years) time series of 55 items.
I'm trying to figure out how to run a for loop that allows displaying the graph of each column of my matrix. In particular I'm wondering if there is a command that allows displaying each graph at a time, and then showing the following one after a keyboard input I can give. So that I can briefly scan all the graphs of my 55 time series.
I'm thinking about a command like "wait" or something...

At the moment I'm stuck here:

Code: Select all

group g * 'put every series in the workfile into a group g.drop resid matrix (9,55) matrice stom(g, matrice) for !i=1 to 55
Thank you!

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

Re: display graphs in a for loop

Postby EViews Gareth » Thu Jan 29, 2015 7:11 am

There isn't a command that will let you do that :(

epeter
Posts: 16
Joined: Wed May 28, 2014 1:59 am

Re: display graphs in a for loop

Postby epeter » Thu Jan 29, 2015 8:41 am

:( OK thank you Gareth!!

epeter
Posts: 16
Joined: Wed May 28, 2014 1:59 am

Re: display graphs in a for loop

Postby epeter » Thu Jan 29, 2015 9:41 am

There isn't a command that will let you do that :(
Ok I'm thinking I can actually do it manually. However I'm struggling a bit in finding the right command to get the graph of each single column of my matrix. Something like:

Code: Select all

show(graph) matrice_orig(:,!i).line
I know the syntax matrice_orig(:,!i) does not belong to eviews. Do you have any suggestion?

Thank you!!

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

Re: display graphs in a for loop

Postby EViews Gareth » Thu Jan 29, 2015 9:53 am

You'll have to extract each column one at a time into a vector.

I should point out that you're probably better of working with the series than vectors.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests