Am 30.12.2022 um 20:04 schrieb Javier Sansa:

I have been trying to use the different options of the deseas function in gretl. All the options I used seem to work as intended except the arima option. To be more specific I have tried to build a deseasonalizing procedure in which a certain arima model is imposed. According to the gretl reference manual this should be done by building a bundle and using “arima” and a 6x1 matrix which defines the model, like in the following example:

matrix start ={0,2,1,0,1,1}

bundle b=defbundle(verbose=2,seats=1,outliers=7, arima=start)

 

The bundle definition works, i.e a bundle b is built, but function deseas fails because it does not recognize the arima key

 

I attach a file with data and a short script should something be unclear.

 

Please, let me know if I failed to follow the manual or there is something strange going on with the program.

 

And since we are at the end of 2022, a happy new year!

Thank you for the report, Javier - and also for the wishes. One more time today I'll say sorry for the delay, there apparently has been a technical problem with the mailing lists.

I can easily replicate your problem, this bug must somehow have crept in recently, because I'm fairly confident this thing worked when all these options were first introduced (about a year ago?).

Internal comments: The error message must come from 'check_bundled_item in lib/src/gretl_bundle.c, after in line 1860 the check 'if (targ == NULL) ' holds. And indeed in 'deseas_options_template' in plugin/tramo-x12a.c in line 2232 we have 'gretl_bundle_set_matrix(b, "arima", NULL);'. I guess either the check would have to be more elaborate, or perhaps the initialization should be to an explicit empty matrix or so, instead of a NULL value. (If there's a difference at the C level, not sure.)

cheers

sven