View source: R/betafunctions.R
betamode | R Documentation |
Computes the mode of a Beta distribution with specified shape- and location parameters.
betamode(alpha, beta, l = 0, u = 1)
alpha |
The alpha shape parameter of the Probability Density Distribution. |
beta |
The beta shape parameter of the Probability Density Distribution. |
l |
The first (lower) location parameter of a four-parameter distribution. Default set to |
u |
The second (upper) location parameter of a four-parameter distribution. Default set to |
# To calculate the mode of a two-parameter (standard) Beta distribution with
# shape parameters alpha = 5 and beta = 3:
betamode(alpha = 5, beta = 3)
# To calculate the mode of a four-parameter Beta distribution with shape
# parameters alpha = 5 and beta = 3, and location parameters l = 25 and
# u = 150:
betamode(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.