Coder Social home page Coder Social logo

dbda_hierach_diagram's Introduction

Diagram for hierarchical models

An example of an 'Doing Bayesian Data Analysis' (DBDA)-style diagram for hierarchical models, the classic "rats" example from BUGS, motivated by John K. Kruschke's post.

The Code is written in LaTeX and TikZ and uses 'distrograms' (pictograms of the distributions, a word-creation of Rasmus Bååth) to illustrate the underlying distributions.

DBDA diagram

Files

  • hierarch_diagram.tex: The diagram, it is written in LaTeX and TikZ
  • hierarch_diagram_framedBoxes.tex: In this example the nodes are framed to show the possibilities of TikZ like in this example
  • plot_PNGs_of_MiniPlots.R: An R-script that draws the 'distrograms' of different distributions (Normal, Gamma, Beta). They are saved in MiniPlots/.

Thanks

John K. Kruschke motivated me to refactor the first prototype.

Rasmus Bååth wrote a sophisticated R-script to draw 'distrograms' for many different distributions and save them as .png and .svg. His code is on GitHub. I used his 'Normal' and 'Gamma' with some minor changes. He also created templates of the 'distrograms' for LibreOffice Draw, see his blog post.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.