On Sat, 20 Nov 2021, Sven Schreiber wrote:
Am 19.11.2021 um 16:11 schrieb Allin Cottrell:
> You have the deseas() function, but it doesn't offer much control.
Thanks, Allin, for reminding us (me) of this function, which wasn't
really on my radar. Two comments about the doc:
- This is another example where X13 isn't mentioned yet. Do I understand
correctly that for the default settings X12 and X13 should produce
identical results?
- It's not clear from the doc what it means that the function will fail.
Or to put it differently, if it's a hard error and the script cannot
continue, then it's a bit of a problem, I'd say. But I'm not sure
whether "catch" can be used, since it's a function and not a command.
OK, some testing with an artificially constant series:
<hansl>
nulldata 200
setobs 4 1:1 --time-series
series x = 2
series xSA = deseas(x) # no error, series is produced
</hansl>
Hm, since I'm not getting an error even there, it's a bit hard to
analyze... Could it be that the doc is not up to date?
What version of x12a or x13as are you using? If I try the above with
current x13as (version 1.1, build 58) I get
/home/allin/.gretl/x12arima/x.d11: No such file or directory
Terminated on error
So, a "hard error", due to the absence of a seasonally adjusted
output series. But "catch" works on built-in functions as well as
commands so the error can be caught.
> It would be quite easy to add an optional bundle-of-options
> argument to deseas(), to give as much control over the processing
> as is offered by the GUI interface (perhaps more, if anyone's so
> motivated).
I agree with Jack, this sounds very desirable...
Me too, I'm working on it, progress can be observed in git.
Allin