View source: R/betafunctions.R
betamedian | R Documentation |
Computes the median of a Beta distribution with specified shape- and location parameters.
betamedian(alpha, beta, l = 0, u = 1)
alpha |
The alpha shape parameter. |
beta |
The beta shape parameter. |
l |
The first (lower) location parameter. Default set to |
u |
The second (upper) location parameter. Default set to |
# To calculate the median of a two-parameter (standard) Beta distribution with
# shape parameters alpha = 5 and beta = 3:
betamedian(alpha = 5, beta = 3)
# To calculate the median of a four-parameter Beta distribution with shape
# parameters alpha = 5 and beta = 3, and location parameters l = 25 and
# u = 150:
betamedian(alpha = 5, beta = 3, l = 25, u = 150)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.