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.
modelToNode(model, nodes, ...)# S3 method for default
modelToNode(model, nodes, ...)
# S3 method for cpt
modelToNode(model, nodes, ...)
# S3 method for glm
modelToNode(model, nodes, ...)
# S3 method for lm
modelToNode(model, nodes, ...)
# S3 method for multinom
modelToNode(model, nodes, ...)
# S3 method for survreg
modelToNode(model, nodes, ...)
# S3 method for xtabs
modelToNode(model, nodes, ...)
A model object
A vector of node names, usually as network$nodes
Additional arguments to be passed to other functions. Currently ignored.