Dates and Retrieving Elements

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

at182
Posts: 1
Joined: Sun May 17, 2015 9:39 pm

Dates and Retrieving Elements

Postby at182 » Sun May 17, 2015 9:51 pm

Hi,

Complete rookie eViews user. I've managed to link a quarterly timeseries to an excel file but having problems referring to elements within the time series other than @last or @first?

I'm running the following code on the data attached.

The data is indexed as follows

WAGES_TR
.
.
2014Q2 - 118.7
2014Q3 - 119.4
2014Q4 - 120.1

Code: Select all

wages_tr.smooth(n) wages_trsm
show wages_sa.@last
show (@elem(wages_trsm,"2015Q1")/@elem(wages_sa,"2014Q4")-1)*100


My question is instead of using 2015Q1, can I use something as follows:

Code: Select all

@elem(wages_trsm,@obs(date)-1)
Attachments
Capture.JPG
Capture.JPG (94.79 KiB) Viewed 3841 times

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

Re: Dates and Retrieving Elements

Postby EViews Gareth » Mon May 18, 2015 7:58 am

Use the @otod function to convert the observation number you're interested in into a date, then use the date inside @elem.
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 13 guests