Page 1 of 1

display graphs in a for loop

Posted: Thu Jan 29, 2015 4:02 am
by epeter
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!

Re: display graphs in a for loop

Posted: Thu Jan 29, 2015 7:11 am
by EViews Gareth
There isn't a command that will let you do that :(

Re: display graphs in a for loop

Posted: Thu Jan 29, 2015 8:41 am
by epeter
:( OK thank you Gareth!!

Re: display graphs in a for loop

Posted: Thu Jan 29, 2015 9:41 am
by epeter
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!!

Re: display graphs in a for loop

Posted: Thu Jan 29, 2015 9:53 am
by EViews Gareth
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.