Learn R Programming

bayesvl (version 0.8.5)

bayesvl-package: BayesVL package for Bayesian statistical analyses in R

Description

The R package for visually learning the graphical structures of Bayesian networks, and performing Hamiltonian MCMC with Stan through bvl_model2Stan, bvl_modelFit

Arguments

Details

Package: bayesvl
Type: Package
Version: 0.8.0
Date: 13 May 2019
License: GPL-3
Website: Bayesvl

References

For documentation, case studies and worked examples, and other tutorial information visit the References section on our Github:

See Also

bayesvl-class, bvl_modelFit, bvl_model2Stan

Examples

Run this code
# NOT RUN {
	# Design the model in directed acyclic graph
	model <- bayesvl()
	
	# add observed data nodes to the model
	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 path between nodes
	model <- bvl_addArc(model, "B", "Lie", "slope")
	model <- bvl_addArc(model, "C", "Lie", "slope")
	model <- bvl_addArc(model, "T", "Lie", "slope")
  
  summary(model)
# }

Run the code above in your browser using DataLab