beta_quantile: Displays a Quantile of a Beta Curve

Description Usage Arguments Value Author(s) Examples

View source: R/beta_quantile.R

Description

Displays a Quantile of a Beta Curve

Usage

1
  beta_quantile(prob, shape_par, Color = "orange")

Arguments

prob

probability value of interest

shape_par

vector of shape parameters of the beta curve

Color

color of shading in the graph

Value

Displays the quantile of a beta curve corresponding to the probability value

Author(s)

Jim Albert

Examples

1
2
3
4
5
6
7
  # find the .50 quantile (the median)
  prob <- 0.5
  parameters <- c(2, 5)
  beta_quantile(prob, parameters)
  # find the .90 quantile (90th percentile)
  prob <- 0.9
  beta_quantile(prob, parameters)

bayesball/TeachBayes documentation built on Jan. 5, 2020, 1:47 a.m.