pageunstack

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

mamo
Posts: 191
Joined: Wed Nov 07, 2012 9:11 am

pageunstack

Postby mamo » Tue Feb 07, 2017 4:09 am

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)

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

Re: pageunstack

Postby EViews Gareth » Wed Feb 08, 2017 11:18 am

No image supplied.
Follow us on Twitter @IHSEViews

mamo
Posts: 191
Joined: Wed Nov 07, 2012 9:11 am

Re: pageunstack

Postby mamo » Fri Feb 10, 2017 2:42 am

Missing picture now here in the attachment
Best, mamo
Attachments
unstackmenu.jpg
unstackmenu.jpg (29.88 KiB) Viewed 3483 times

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

Re: pageunstack

Postby EViews Jason » Fri Feb 10, 2017 10:04 am

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.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 20 guests