In cases where model objects may already be fit and established,
they can be used to generate a network without having to refit the
models or specify the distributions in setNode
.
For models built with xtabs
, although a data frame may be
passed when building the model, it is not stored in the object. Thus,
the data used to construct the models are not carried with the node.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | modelToNode(model, nodes, ...)
## Default S3 method:
modelToNode(model, nodes, ...)
## S3 method for class 'cpt'
modelToNode(model, nodes, ...)
## S3 method for class 'glm'
modelToNode(model, nodes, ...)
## S3 method for class 'lm'
modelToNode(model, nodes, ...)
## S3 method for class 'multinom'
modelToNode(model, nodes, ...)
## S3 method for class 'survreg'
modelToNode(model, nodes, ...)
## S3 method for class 'xtabs'
modelToNode(model, nodes, ...)
|
model |
A model object |
nodes |
A vector of node names, usually as |
... |
Additional arguments to be passed to other functions. Currently ignored. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.