Given a bn.fit object, the size of the net and a dataset, performs exact smoothing over the initial evidence taken from the dataset. Take notice that the smoothing is done backwards in time, as opposed to forecasting.
exact_inference_backwards(dt, fit, obj_vars, ini, len, prov_ev)
a list with the results of the inference backwards
data.table object with the TS data
bn.fit object
variables to be predicted. Should be in the oldest time step
starting point in the dataset to smooth
length of the smoothing
variables to be provided as evidence in each forecasting step. Should be in the oldest time step