reading data and frequency conversion

For questions regarding programming in the EViews programming language.

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

wags
Posts: 5
Joined: Wed May 01, 2013 1:45 pm

reading data and frequency conversion

Postby wags » Wed May 01, 2013 1:55 pm

I apologize in advance for posting what I hope is a simple question. I am using EViews for the first time in more than a decade and I have not been able to figure this out.

I have data on two worksheets in Excel; one worksheet contains quarterly data and the second contains monthly data. I would like to have a program that (a) creates the workfile and (b) reads in the data from both worksheets with the frequency conversion from monthly to quarterly. All of the data also need to be on the same page in the workfile.

Is there a way that this can be done? I've attached a sample data file and my program, which obviously does not automatically convert the monthly data to quarterly.

I am also using EViews 8 if that matters.

Thanks a ton for any help you can provide.
create_workfile.prg
(215 Bytes) Downloaded 264 times
example.xlsx
(16.61 KiB) Downloaded 304 times

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

Re: reading data and frequency conversion

Postby EViews Gareth » Wed May 01, 2013 2:10 pm

You just need the WFOPEN and IMPORT commands.

wags
Posts: 5
Joined: Wed May 01, 2013 1:45 pm

Re: reading data and frequency conversion

Postby wags » Fri May 03, 2013 6:29 am

Thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests