rjdverse / rjd3tramoseats

R access to Tramo-Seats algorithm in JDemetra+ version 3.x
https://rjdverse.github.io/rjd3tramoseats/
European Union Public License 1.2
4 stars 6 forks source link

impossible to customize bcasts in set_seats #2

Closed TanguyBarthelemy closed 4 months ago

TanguyBarthelemy commented 1 year ago

(copy of the issue palatej/rjd3tramoseats#10)

tramo-seats estimation will work only for bcasts = 0 (default), error otherwise

Example:

init_spec <- spec_tramoseats("rsafull")
new_spec <- set_seats(init_spec, bcasts = 18)
y <- rjd3toolkit::ABS$X0.2.09.10.M
sa <- rjd3tramoseats::tramoseats(y, spec = new_spec)

it returns:

> Error in .jcall("jdplus/tramoseats/base/r/TramoSeats", "[B", "toBuffer", :
> java.lang.IllegalArgumentException
palatej commented 4 months ago

Corrected in the Java library. Integrated in rjd3toolkit v3.2.3