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

rewriteHydeFormula

Rewrite HydeNetwork Graph Model Formula


Description

This is a convenience function used to assist in the updating of HydeNetwork network objects. It makes it possible to add and subtract individual parent relationships without deleting an entire node.

Usage

rewriteHydeFormula(old_form, new_form)

Arguments

old_form

The current formula in a HydeNetwork object.

new_form

The formula specifications to be added

Details

To allow changes to be made on the node-parent level, the formulae are broken down into a vector of component where each element identifies a unique parent-child relationship. So if a node has representation nodeA | nodeB*nodeC, it will be broken down to nodeA | nodeB + nodeA | nodeC.

After decomposing the formulae, any instances of a component in form1 that are subtracted in form2 are removed.

Next, all added components in form2 that do not already exist in form1 are added.

Lastly, the parents of each node are combined and the specification of the network is written.

Author(s)

Jarrod Dalton and Benjamin Nutter


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.