Description Usage Arguments Value
Add node to R Bayesnet object
1 2 | shallowUpdateOnNodeAdded(net, type, values, name, parents, params,
params2 = NULL, miscString = NULL)
|
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. |
new Bayesian network with node added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.