shallowUpdateOnNodeAdded: Add node to R Bayesnet object

Description Usage Arguments Value

View source: R/AddNode.R

Description

Add node to R Bayesnet object

Usage

1
2
shallowUpdateOnNodeAdded(net, type, values, name, parents, params,
  params2 = NULL, miscString = NULL)

Arguments

net

the current network

type

string specifying type of node to add. Valid values are: 'noisyor', 'dirichlet', 'logand', 'logor', logprod', 'flag', and 'flagprod'.

values

vector of strings specifying the names of the values of the node. Note that all nodes must have at least two values, and noisy-or and logical-and type nodes can only have two values.

name

string specifying the name of the node.

parents

vector of integers specifying the indices of the parents of node. Note that logical-and nodes must have exactly two parents.

params

matrix specifying parameters of node.

params2

matrix specifying secondary parameters of node.

miscString

a string specifying additional settings. Currently used only for multinomial noisy-or nodes, in which case it should be 'T' if the secondary parameters matrix should be adaptable, and 'F' otherwise.

Value

new Bayesian network with node added.


mickash/Adaptive-Bayesian-Networks documentation built on Nov. 14, 2019, 12:14 a.m.