bayesvl-package | R Documentation |
An R package for visually constructing graphical models of Bayesian networks and performing Hamiltonian Monte Carlo (HMC) via Stan, using functions such as bvl_model2Stan
and bvl_modelFit
.
Package: | bayesvl |
Type: | Package |
Version: | 0.8.0 |
Date: | 2019-05-13 |
License: | GPL-3 |
Website: | https://github.com/sshpa/bayesvl |
Quan-Hoang Vuong, Viet-Phuong La
For documentation, case studies, worked examples, and other tutorial materials, visit the References section on our GitHub:
For case studies using the package in research articles, see:
bayesvl-class
,
bvl_modelFit
,
bvl_model2Stan
# Create a new model
model <- bayesvl()
# Add observed data nodes
model <- bvl_addNode(model, "Lie", "binom")
model <- bvl_addNode(model, "B", "binom")
model <- bvl_addNode(model, "C", "binom")
model <- bvl_addNode(model, "T", "binom")
# Add directed arcs
model <- bvl_addArc(model, "B", "Lie", "slope")
model <- bvl_addArc(model, "C", "Lie", "slope")
model <- bvl_addArc(model, "T", "Lie", "slope")
# View model summary
summary(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.