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?
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...
thanks
sven