Back to Home | Research| Software
Bayes nets: RHugin emulation with gRain
Wrappers for functions in the ‘gRain’ package to emulate some ‘RHugin’ functionality, allowing the building of Bayesian networks consisting of discrete chance nodes incrementally, through adding nodes, edges and conditional probability tables, the setting of evidence, whether ‘hard’ (boolean) or ‘soft’ (likelihoods), and querying marginal probabilities and normalizing constants. Computations will typically not be so fast as they are with ‘RHugin’, but this package should assist users without access to ‘Hugin’ to use code written to use ‘RHugin’. I am grateful to Therese Graversen for her contributions, especially the function map.configurations, and to Søren Højsgaard for enhancements to his gRain package that improve the performance of this package.
Download and install from CRAN by typing
; for possibly later development versions, download and install from GitHub by typing
Then, to see a simple example in action, type