Importing: not in default mode

For questions regarding programming in the EViews programming language.

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

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Importing: not in default mode

Postby 88fr.leo » Wed Jan 09, 2013 11:55 am

Good evening, I need to import a serie in %change mode, not in default mode. Then, eviews can calculate an index by itself, is that possible?

Thx

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

Re: Importing: not in default mode

Postby EViews Gareth » Wed Jan 09, 2013 12:00 pm

You'll need a value for the first year, but assuming you have that, just import the %change series, then calculate a new series off of it (here I'm seeding the X series at a value of 100, and assuming XCHANGE is the name of the %change series)

Code: Select all

smpl @first @first series x = 100 smpl @first+1 @last x = x(-1)*(1+xchange)

gio.ortolani
Posts: 14
Joined: Wed Apr 25, 2012 7:34 am

Re: Importing: not in default mode

Postby gio.ortolani » Wed Jan 09, 2013 1:51 pm

what about the % change signaled in the link below? is that possible to import series in that mode?

https://www.dropbox.com/s/oqilo5ua1euemvq/pch.png

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

Re: Importing: not in default mode

Postby EViews Gareth » Wed Jan 09, 2013 1:58 pm

Same thing.

gio.ortolani
Posts: 14
Joined: Wed Apr 25, 2012 7:34 am

Re: Importing: not in default mode

Postby gio.ortolani » Thu Jan 10, 2013 4:11 am

my range starts in 1980, but my Excel starts in 2012. i would like to maintain unaltered the sample from 1980 to 2011 that already exists in EViews and import only from 2012 to EViews. if I write @pch(series) in the code, it will be useless? i'm afraid that, in my case, the code you wrote won't help me.

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

Re: Importing: not in default mode

Postby EViews Gareth » Thu Jan 10, 2013 9:12 am

Start the sample at the period you want to adjust then, rather than the first period in the workfile.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests