Learn R Programming

bayesrules (version 0.0.2)

plot_beta_ci: Plot a Beta Model with Credible Interval

Description

Plots the probability density function (pdf) for a Beta(alpha, beta) model of variable \(\pi\) with markings indicating a credible interval for \(\pi\).

Usage

plot_beta_ci(alpha, beta, ci_level = 0.95)

Arguments

alpha, beta

positive shape parameters of the Beta model

ci_level

credible interval level

Value

A density plot for the Beta model

Examples

Run this code
# NOT RUN {
plot_beta_ci(alpha = 7, beta = 12, ci_level = 0.80)
# }

Run the code above in your browser using DataLab