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)