Pagestruct using year and month

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

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Pagestruct using year and month

Postby jthodge » Wed Nov 30, 2016 2:15 pm

I'm trying to restructure a page using year and month series. However, it only seems to work if there are 12 months.

For example, the following code with 12 observations seems to work

Code: Select all

wfcreate u 12 genr year = 2015 genr month = @obsid pagestruct @date(year, month)
But if I only have 9 observations (i.e. Jan-Sep), I get an error saying "Unable to interpret date specification"

Code: Select all

pagecreate u 9 genr year = 2016 genr month = @obsid pagestruct @date(year, month)
What am I missing here? Is there some option for pagestruct that I should include? I'm using Eviews 9.5, Nov 14 2016 build.

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

Re: Pagestruct using year and month

Postby EViews Gareth » Wed Nov 30, 2016 2:41 pm

You need one year or more if you want to do it like that.

Alternatively you could make an explicit date series out of your two existing ones and then use that as the structure.

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Re: Pagestruct using year and month

Postby jthodge » Wed Nov 30, 2016 3:22 pm

Thanks. As you suggest, using an intermediary date series for the pagestruct command works regardless of the number of month observations.

Code: Select all

pagecreate u 9 genr year = 2016 genr month = @obsid genr dateobs = @makedate(100*year+month,"YYYYMM") pagestruct @date(dateobs)
It would be nice though if Eviews could recognize the structure of a workfile with less than 12 months.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest