Daily series from Datastream

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Daily series from Datastream

Postby vytama » Wed Jan 28, 2015 2:38 pm

Hello,

Eviews 8 here. I use fetch command to get time series from Datastream. I noticed that if the time series are daily (like oil or other commodities) and I have monthly workfile, the download is an average of the month, not the end of the month value. I talked to Datastream and obviously they are saying that it's a setting in Eviews where the change can be made. Is this true? if it is, how can I change to the last value of the month instead of average? Thanks

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

Re: Daily series from Datastream

Postby EViews Gareth » Wed Jan 28, 2015 2:59 pm

Code: Select all

fetch(c=l)

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Daily series from Datastream

Postby vytama » Thu Jan 29, 2015 6:12 am

Thank you for the suggestion but if I add options to the fetch command - I get an error: Database error: "invalid date or date incompatible with frequency".
I am trying to pull CRUDOIL series from Datastream (it's daily series and my frequency is monthly in the workfile). I tried using: fetch (c=c) CRUDOIL, also specifying the database: fetch (d=datastream, c=c) CRUDOIL. Both times I get the error mentioned above. Can you tell me what I am doing incorrectly? Thanks.

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

Re: Daily series from Datastream

Postby EViews Gareth » Thu Jan 29, 2015 6:23 am

You have a space

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Daily series from Datastream

Postby vytama » Thu Jan 29, 2015 9:23 am

Thanks Gareth, it did this issue and it runs. I tried changing (c=c) to (c=d) and other options - it would still pull the same average values for the month. It does not seem to pick up the last value. Could it be Datastream issue?

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: Daily series from Datastream

Postby EViews Jason » Thu Jan 29, 2015 2:46 pm

c=d is a low to high frequency conversion method. You want to use the high to low frequency settings. Use

Code: Select all

fetch(c=l) crudoil 'find last non-NA
or

Code: Select all

fetch(c=nl) crudoil 'include NAs

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

Re: Daily series from Datastream

Postby vytama » Sat Jan 31, 2015 6:11 am

Thank you, it works.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests