Visualize Draws from the Prior and Posterior Distributions

Interactive visualization for Bayesian prior and posterior distributions. This package facilitates an animated transition between prior and posterior distributions. Additionally, it splits the distribution into bars based on the provided 'breaks,' displaying the probability for each region. If no 'breaks' are provided, it defaults to zero.


vizdraws

vizdraws creates interactive visualizations using draws from a prior and posterior distributions.

CRAN_Status_Badge Downloads_grand-total last-month last-week

Installation

install.packages('vizdraws')

The latest development version can be installed from github:

# install.packages("remotes")
remotes::install_github('ignacio82/vizdraws')

Example

This is a example which shows you how to how to visualize the transition from the prior to the posterior:

library(vizdraws)
set.seed(9782)
vizdraws(prior = rnorm(10000, 0, 1), posterior = rnorm(10000, 1.1, 0.5), MME = 0.5, threshold = 0.8)

Notes

The bell-curve icon was created by Davo Sime.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("vizdraws")

2.0.0 by Ignacio Martinez, 3 years ago


https://github.com/ignacio82/vizdraws/ https://vizdraws.martinez.fyi/, https://github.com/ignacio82/vizdraws


Report a bug at https://github.com/ignacio82/vizdraws/issues


Browse source code at https://github.com/cran/vizdraws


Authors: Ignacio Martinez [aut, cre] , Linus Marco [aut] , Dan Thal [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports dplyr, htmlwidgets, magrittr, stats, stringr

Suggests glue, knitr, rmarkdown


Imported by bsynth, imt.


See at CRAN