Page 1 of 1

Pagestruct using year and month

Posted: Wed Nov 30, 2016 2:15 pm
by jthodge
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.

Re: Pagestruct using year and month

Posted: Wed Nov 30, 2016 2:41 pm
by EViews Gareth
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.

Re: Pagestruct using year and month

Posted: Wed Nov 30, 2016 3:22 pm
by jthodge
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.