Abstract

Compared with traditional statistics, only a few social scientists employ Bayesian analyses. The existing software programs for implementing Bayesian analyses such as OpenBUGS, WinBUGS, JAGS, and rstanarm can be daunting given that their complex computer codes involve a steep learning curve. In contrast, this paper introduces a new open software for implementing Bayesian network modelling and analysis: the bayesvl R package. The package aims at providing an intuitive gateway for beginners of Bayesian statistics to construct and analyse mathematical models in social sciences. To achieve this aim, the bayesvl package integrates three core functions seamlessly: (i) designing Bayesian network models using directed acyclic graphs (DAGs) of bnlearn, (ii) generating attractive visualization of ggplot2, and (iii) simulating data and computing posterior distribution using the Markov chain Monte Carlo (MCMC) algorithms of rstan and rethinking. A case example illustrates how the bayesvl package helps leverage users’ intuition in creating and evaluating mathematical models of their social scientific problems while minimizing the daunting aspect of writing complex computer codes.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call