Update Probabilistic Graphical Network
Add or remove nodes or add parents within a HydeNetwork
model.
## S3 method for class 'HydeNetwork' update(object, formula, ...)
object |
A |
formula |
A formula statement indicating the changes to the network. |
... |
Additional arguments to be passed to other methods. Current, none are used. |
Adding or removing nodes is fairly straightforward if you are removing a complete node (along with its parents). Removing a parent will generate a warning that the child nodes may need to be redefined.
Jarrod Dalton and Benjamin Nutter
data(PE, package="HydeNet") Net <- HydeNetwork(~ wells + pe | wells + d.dimer | pregnant*pe + angio | pe + treat | d.dimer*angio + death | pe*treat) plot(Net) Net <- update(Net, . ~ . - pregnant) plot(Net)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.