Am 16.11.20 um 19:34 schrieb Sven Schreiber:
Am 16.11.2020 um 19:21 schrieb Artur Bala:
> Hi,
>
> The following error is produced when executing the green15_3 script
>
> # generate panelized variables (stacked time series)
> ? series It = stack(I_GM,I_CH,I_GE,I_WE,I_US)
> stack: too many arguments
>
> Error executing script: halting
> > series It = stack(I_GM,I_CH,I_GE,I_WE,I_US)
>
Yep, I guess the following statement about stack() from the
backward-incompatible changelog for 2020b isn't quite accurate: "The old
form still works until further notice."
In any case, the script should be adapted to the new syntax, possibly
before release?
The following replacement works for me, but I'm not sure if it does what
the script originally intended:
series It = stack(deflist(I_GM,I_CH,I_GE,I_WE,I_US), $nobs)
series Ft = stack(deflist(F_GM,F_CH,F_GE,F_WE,F_US), $nobs)
series Ct = stack(deflist(C_GM,C_CH,C_GE,C_WE,C_US), $nobs)
And if that's right, I wonder whether $nobs might be a useful implicit
default for the second argument? (Formally 0 could be used as the
default which would imply that.)
Whaat? Since when does the deflist() function exist? I've never ever
heard about it but definitely would have wished it existed so many times :-D
Artur