Learn R Programming

TeachBayes (version 0.1.0)

beta_prior_post: Plot of Two Beta Curves

Description

Plot of Two Beta Curves

Usage

beta_prior_post(prior_shapes, post_shapes, label_1="Prior", label_2="Posterior")

Arguments

prior_shapes
vector of shape parameters of the beta prior
post_shapes
vector of shape parameters of the beta posterior
label_1
title for the first beta curve
label_2
title for the second beta curve

Value

Displays the beta prior and beta posterior curves

Examples

Run this code
 beta_prior_post(c(4, 6), c(19, 16))

Run the code above in your browser using DataLab