Learn R Programming

dbnR (version 0.7.1)

approximate_inference: Performs approximate inference forecasting with the GDBN over a data set

Description

Given a bn.fit object, the size of the net and a data.set, performs approximate forecasting with bnlearns cpdist function over the initial evidence taken from the data set.

Usage

approximate_inference(dt, fit, size, obj_vars, ini, rep, len, num_p)

Arguments

dt

data.table object with the TS data

fit

bn.fit object

size

number of time slices of the net

obj_vars

variables to be predicted

ini

starting point in the data set to forecast.

rep

number of repetitions to be performed of the approximate inference

len

length of the forecast

num_p

number of particles to be used by bnlearn

Value

the results of the forecast