Page 1 of 1

pageunstack

Posted: Tue Feb 07, 2017 4:09 am
by mamo
Dear Eviews team,

I use Eviews 9.5 27 Dec 2016 build

I find that unstacking using the menu as compared to using the pageunstack command seems to make difference if the series containing the unstacking identifier has only one (repeated) value (see example in the code below). Particularly, it seems that in this case the option "Force consolidation of repeated series" should be unchecked in the menu.

I am wondering what the equivalent option in the command "pageunstack" is?

One may argue that unstacking does not make sense if the unstacking identifier is unique. This is, however, not always known beforehand, and the "pageunstack" command would ideally also capture this case.

Best, mamo

Code: Select all

wfcreate(page=p1) u 20 series x=nrnd alpha varn="a" series id=@obsnum smpl 11 20 'The stack identifier has now two entries: "a" and "b" 'The line works as intended: it produces the variables xa and xb varn="b" series id=@obsnum-10 smpl @all 'The following line works as intended: it produces the variables named xa and xb pageunstack(page=p1st) varn id @ x id pagecreate(page=p2) u 1 20 series x=nrnd alpha varn="a" series id=@obsnum 'The stack identifier has only one entries, "a" 'The following line does not work as intended, it does not yield the variable named xa pageunstack(page=p2st) varn id @ x id 'In contrast, using the unstacking menu with the option "Force consolidation of repeataed series" switched off ' yields the variable xa (see jpg-file attached)

Re: pageunstack

Posted: Wed Feb 08, 2017 11:18 am
by EViews Gareth
No image supplied.

Re: pageunstack

Posted: Fri Feb 10, 2017 2:42 am
by mamo
Missing picture now here in the attachment
Best, mamo

Re: pageunstack

Posted: Fri Feb 10, 2017 10:04 am
by EViews Jason
To match the dialog, use the 'noconsolidate' option.

Code: Select all

pageunstack(namepat=*?, noconsolidate) varn id @ *
We must have missed it when we wrote the documentation. I'll make sure we add it.

FWIW, I found the undocumented option via the generated command capture.