Multiplying series from different pages/tabs

For questions regarding programming in the EViews programming language.

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

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Multiplying series from different pages/tabs

Postby Overtime » Tue Feb 18, 2014 7:11 am

Hey all,

I've got a quick question. I've been through the user manuals but haven't found an answer
to my simple problem.

Basically, I want to multiply a series in my active workfile with another series in a different
page/tab from my workfile. What is the best way of doing this without copying the series to
the active page?

Thanks

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

Re: Multiplying series from different pages/tabs

Postby EViews Gareth » Tue Feb 18, 2014 9:35 am

Code: Select all

series a = page2\b * e

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: Multiplying series from different pages/tabs

Postby Overtime » Tue Feb 18, 2014 9:52 am

thanks, but any reason why that wouldn't work? I get an error message effectively saying:

page2\b is not defined in "series a = page2\b * e"

I've checked the syntax, the page name, the series I'm referring and am pretty sure it is correct...

Also, I've been having a hard time saving a series to an excel file. I've tried using something like
"a.write(t=xls) path" but that doesn't seem to work (i've figured out how to save graphs and tables tho!).
I know these are basic questions, but I only started using e-views a couple of days ago! I've got all the
books but it's not entirely clear where to find what you are looking for sometimes!

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

Re: Multiplying series from different pages/tabs

Postby EViews Gareth » Tue Feb 18, 2014 10:07 am

Which version of EViews?

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: Multiplying series from different pages/tabs

Postby Overtime » Tue Feb 18, 2014 1:49 pm

e-views 7

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

Re: Multiplying series from different pages/tabs

Postby EViews Gareth » Tue Feb 18, 2014 1:49 pm

Can't be done in 7.

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: Multiplying series from different pages/tabs

Postby Overtime » Wed Feb 19, 2014 12:56 am

That seems somewhat deficient!

I'm actually using e-views 7.1. Is there an add-on I can install to give
e-views 7.1 this functionality?

[Edit: I'm assuming you are referring to the page functionality, what about saving a series to an excel file in e-views 7?
Can you post the syntax for that? Thx]
Last edited by Overtime on Wed Feb 19, 2014 1:00 am, edited 1 time in total.

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

Re: Multiplying series from different pages/tabs

Postby EViews Gareth » Wed Feb 19, 2014 12:59 am

Nope.

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: Multiplying series from different pages/tabs

Postby Overtime » Wed Feb 19, 2014 1:12 am

OK - well, that sucks.

Going to have to rethink the structure of the code I want to write.

Did you see my edit on the above post?

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

Re: Multiplying series from different pages/tabs

Postby EViews Gareth » Wed Feb 19, 2014 7:24 am

Use wfsave

Overtime
Posts: 12
Joined: Tue Feb 18, 2014 6:15 am

Re: Multiplying series from different pages/tabs

Postby Overtime » Thu Feb 20, 2014 1:46 am

ah ok. I saw wfsave when looking through the command reference manual but didn't realise it
could save in other formats besides .prg

thanks for the help Gareth.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests