Returns the model object stored in a fitted model. It is mostly useful
for programming; jd3_indicator() and jd3_dictionary() call it
internally.
Value
For X13(), TRAMOSEATS(), REGARIMA() and TRAMO(), a
jd3_model object: a list holding the data (a tsibble), the
series (ts), the final specification (spec), the reference
specification (ref_spec), the modelling context, the engine, the name of
the response and a cache for the Java result.
For the high-frequency models (AIRLINE_DECOMPOSITION(), MSTL()...), a
hf_model object: a list holding the data, the series, the periodicities,
the transformation, the outputs of rjd3highfreq (dec for the
decomposition and, with a pre-adjustment, pre$est for
rjd3highfreq::fractional_airline_estimation()) and the components.
Examples
mb <- model(tsibble::as_tsibble(AirPassengers), x13 = X13(value))
m <- jd3_model(mb$x13[[1]])
class(m)
#> [1] "X13" "jd3_model" "jd3_sa_model"