Force freq=q when pageload .xlsx

For questions regarding programming in the EViews programming language.

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

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Force freq=q when pageload .xlsx

Postby paues » Mon Apr 08, 2013 8:13 am

Is there some way to force pageload to import data using a particular frequency? Inspired by an old forum post, I have tried the command below. It gives me the observations I want but imports them as an undated panel.

Code: Select all

pageload myFile.xlsx range="Sheet1!B2" byrow names=(test1,test2,test3) @smpl 2010q1 2012q3 @freq q

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

Re: Force freq=q when pageload .xlsx

Postby EViews Gareth » Mon Apr 08, 2013 8:28 am

Try:

Code: Select all

pageload myFile.xlsx range="Sheet1!B2" byrow names=(test1,test2,test3) @freq q 2010

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Force freq=q when pageload .xlsx

Postby paues » Mon Apr 08, 2013 8:41 am

That works, but it does not allow me to restrict what observations should be read. It seems that adjusting the range to cover only the cells that I want works (below). That however leaves me with the hassle of having to figure out what would be the last column (similar to what I have mentioned in this post).

Code: Select all

pageload myFile.xlsx range="Sheet1!B2:L4" byrow names=(test1,test2,test3) @freq q 2010q1
Last edited by paues on Mon Apr 08, 2013 9:01 am, edited 1 time in total.

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

Re: Force freq=q when pageload .xlsx

Postby EViews Gareth » Mon Apr 08, 2013 8:44 am

Since you're doing a pageload, you could always do the pageload followed by a pagecontract to lop off the ones you don't want.

paues
Posts: 218
Joined: Fri Apr 15, 2011 7:16 am
Location: Stockholm, Sweden

Re: Force freq=q when pageload .xlsx

Postby paues » Mon Apr 08, 2013 9:23 am

Thanks for the tip! The way I suggested now seems a bit idiotic :D Nevertheless, I think that it should be possible to combine the @freq argument with a @smpl argument.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests