ProbBayes1.1 package

Probability and Bayesian Modeling

bar_plot

Bar plot of numeric or character data

bayesian_crank

Computes Posterior Probabilities for Discrete Models

beta_area

Displays Areas Under a Beta Curve

beta_data

Simulate random data from a beta curve

beta_draw

Draw a Beta Curve

beta_interval

Probability Interval for a Beta Curve

beta_prior_post

Plot of Two Beta Curves

beta_quantile

Displays a Quantile of a Beta Curve

centertitle

Centers title in a ggplot2 graphic

ChooseBeta

Shiny App to Choose a Beta Curve

draw_two_p

Plot of Distribution of Two Proportions

dsampling

Hypergeometric sampling density

dspinner

Computes likelihoods for spinner outcomes

gibbs_betabin

Gibbs sampling of the beta-binomial distribution

gibbs_discrete

Gibbs sampling of a bivariate discrete distribution

gibbs_normal

Gibbs sampling of the normal sampling posterior

GradSchoolAdmisson

Graduate School Admission

increasefont

Increases font size of text

JAGS_script

JAGS Script for Common Models

many_normal_plots

Graph of several normal curves

many_spinner_plots

Graphs a collection of spinners

metropolis

Metropolis sampling of a continuous distribution

normal_area

Displays Area Under a Normal Curve

normal_draw

Draws a Normal Curve

normal_interval

Probability Interval for a Normal Curve

normal_quantile

Displays a Quantile of a Normal Curve

normal_update

Updates a Normal Prior with Normal Data

prior_post_plot

Graphs prior and posterior probabilities

prob_plot

Constructs a graph of a probability distribution

random_walk

Metropolis sampling of a discrete distribution

spinner_bayes

Implements Bayes' rule for a spinner problem

spinner_data

Simulate random data from a spinner

spinner_likelihoods

Computes likelihood matrix for many spinners

spinner_plot

Constructs a spinner

spinner_probs

Display probability distribution for a spinner

testing_prior

Testing prior for two proportions

two_p_summarize

Summaries of a probability matrix

two_p_update

Posterior updating of two proportions

Functions and datasets to accompany J. Albert and J. Hu, "Probability and Bayesian Modeling", CRC Press, (2019, ISBN: 1138492566).