Displays a Quantile of a Beta Curve
beta_quantile(prob, shape_par, Color = "orange")
prob
: probability value of interestshape_par
: vector of shape parameters of the beta curveColor
: color of shading in the graphggplot2 object containing the graphical display.
Jim Albert
# find the .50 quantile (the median) prob <- 0.5 shape_par <- c(2, 5) beta_quantile(prob, shape_par) # find the .90 quantile (90th percentile) prob <- 0.9 beta_quantile(prob, shape_par)