Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

update.HydeNetwork

Update Probabilistic Graphical Network


Description

Add or remove nodes or add parents within a HydeNetwork model.

Usage

## S3 method for class 'HydeNetwork'
update(object, formula, ...)

Arguments

object

A HydeNetwork object

formula

A formula statement indicating the changes to the network.

...

Additional arguments to be passed to other methods. Current, none are used.

Details

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.

Author(s)

Jarrod Dalton and Benjamin Nutter

Examples

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)

HydeNet

Hybrid Bayesian Networks Using R and JAGS

v0.10.11
MIT + file LICENSE
Authors
Jarrod E. Dalton <daltonj@ccf.org> and Benjamin Nutter <benjamin.nutter@gmail.com>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.