error message when importing with frequency conversion

For questions regarding programming in the EViews programming language.

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

maragloria
Posts: 101
Joined: Tue Jun 29, 2010 7:09 am

error message when importing with frequency conversion

Postby maragloria » Thu Aug 26, 2010 8:50 am

Hi there,

I am trying to import annual data from excel to eviews using the frequency conversion cubic to convert it to quarterly.

When I run the code:
import(mode="o", page="original_data", c=c) X:\StateSpace_BoC\Eviews\Data\datastream_g10.xlsx range="debt_annually!B2:G34" @smpl @freq q 1980 @rename *OCFNB_ nfl_*

I get the error message:
Unrecognized contraction option: c in "IMPORT(MODE="O", PAGE="ORIGINAL_DATA", C=C) X:\STATESPACE_BOC\EVIEWS\DATA\DATASTREAM_G10. ...

I have tried moving the c=c argument around, putting a quotation mark around the c, without any success.

Any idea why I get the error message?

Thanks for your help,

Mara

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

Re: error message when importing with frequency conversion

Postby EViews Jason » Thu Aug 26, 2010 10:57 am

The documentation for the import command options when converting from a low to higher frequency is incorrect . The import command only support simple conversion methods. The docs should read for low to high conversion:

e=arg

where arg is one of the following:

f - first observation
l - last observation
r - repeat observations
d - distribute observations

So your command should be

Code: Select all

import(mode="o", page="original_data", e=l) X:\StateSpace_BoC\Eviews\Data\datastream_g10.xlsx range="debt_annually!B2:G34" @smpl @freq q 1980 @rename *OCFNB_ nfl_*


If you must use cubic match, import your series into a new annual workfile and then copy the series from the annual workfile to your quarterly workfile via the 'copy' command. The 'copy' command supports the cubic match last conversion method.

maragloria
Posts: 101
Joined: Tue Jun 29, 2010 7:09 am

Re: error message when importing with frequency conversion

Postby maragloria » Thu Aug 26, 2010 11:00 am

thanks very much for your reply.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 40 guests