update.HydeNetwork: Update Probabilistic Graphical Network

Description Usage Arguments Details Author(s) Examples

View source: R/update.HydeNetwork.R

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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 documentation built on July 8, 2020, 5:15 p.m.