Learn R Programming

TeachBayes (version 0.1.0)

Teaching Bayesian Inference

Description

Several functions for communicating Bayesian thinking including Bayes rule for deciding among spinners, visualizations for Bayesian inference for one proportion and for one mean, and comparison of two proportions using a discrete prior.

Copy Link

Version

Install

install.packages('TeachBayes')

Monthly Downloads

2

Version

0.1.0

License

GPL (>= 2)

Maintainer

Jim Albert

Last Published

January 14th, 2017

Functions in TeachBayes (0.1.0)

beta_prior_post

Plot of Two Beta Curves
beta_area

Displays Areas Under a Beta Curve
beta_quantile

Displays a Quantile of a Beta Curve
beta_data

Simulate random data from a beta curve
beta_draw

Draw a Beta Curve
ChooseBeta

Shiny App to Choose a Beta Curve
beta_interval

Probability Interval for a Beta Curve
draw_two_p

Plot of Distribution of Two Proportions
bar_plot

Bar plot of numeric data
bayesian_crank

Computes Posterior Probabilities for Discrete Models
normal_draw

Draws a Normal Curve
normal_interval

Probability Interval for a Normal Curve
normal_quantile

Displays a Quantile of a Normal Curve
normal_area

Displays Areas Under a Normal Curve
prior_post_plot

Graphs prior and posterior probabilities
normal_update

Updates a Normal Prior with Normal Data
dspinner

Computes likelihoods for spinner outcomes
many_spinner_plots

Graphs a collection of spinners
prob_plot

Constructs a graph of a probability distribution
many_normal_plots

Graph of several normal curves
spinner_plot

Constructs a spinner
spinner_probs

Display probability distribution for a spinner
two_p_update

Posterior updating of two proportions
spinner_data

Simulate random data from a spinner
spinner_likelihoods

Computes likelihood matrix for many spinners
two_p_summarize

Summaries of a probability matrix
testing_prior

Testing prior for two proportions