Importing weekly data

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

bpuffer
Posts: 15
Joined: Fri Jun 20, 2014 7:15 am

Importing weekly data

Postby bpuffer » Tue Jan 14, 2025 6:42 am

I am pulling weekly (Monday) data from a db into a workfile that is weekly (Wednesday) and am finding that it defaults to being a week off.

For instance, the weekly (Monday) DB has data through January 6th, 2025 but when brought into the workfile it remaps it to January 1st instead of the 8th. Even though the 8th is the same week as the 6th and the first is not.

How do I get it to pull in the data to the proper week?

Thanks!

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

Re: Importing weekly data

Postby EViews Gareth » Tue Jan 14, 2025 7:02 am

Just lag the data once it is in your workfile.

bpuffer
Posts: 15
Joined: Fri Jun 20, 2014 7:15 am

Re: Importing weekly data

Postby bpuffer » Tue Jan 14, 2025 7:45 am

Just lag the data once it is in your workfile.
How do I do that?

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

Re: Importing weekly data

Postby EViews Gareth » Tue Jan 14, 2025 8:47 am

Code: Select all

series x = y(-1)
or

Code: Select all

series x = y(1)
depending on whether you want to go forwards or backwards


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests