node: Runs exhaustive search on a single node and saves results in...

Description Usage Arguments Value Examples

View source: R/dgm.R

Description

Runs exhaustive search on a single node and saves results in txt file.

Usage

1
2
node(X, n, id = NULL, nbf = 15, delta = seq(0.5, 1, 0.01), cpp = TRUE,
  priors = priors.spec(), path = getwd(), method = "exhaustive")

Arguments

X

array with dimensions timeseries x nodes.

n

node number.

id

subject ID. If set, results are saved to a txt file.

nbf

Log Predictive Likelihood will sum from (and including) this time point.

delta

a vector of potential values for the discount factor.#'

cpp

boolean true (default): fast C++ implementation, false: native R code.

priors

list with prior hyperparameters.

path

a path where results are written.

method

can be exhaustive (default), forward, backward, or both

Value

store list with results.

Examples

1
2
3
data(utestdata)
m=node(myts, 3, id="SUB001_5nodes")
# a results file will be written.

schw4b/DGM documentation built on May 7, 2019, 3:16 p.m.