betamode: Compute Mode of Two- and Four-Parameter Beta Probability...

View source: R/betafunctions.R

betamodeR Documentation

Compute Mode of Two- and Four-Parameter Beta Probability Density distribution.

Description

Computes the mode of a Beta distribution with specified shape- and location parameters.

Usage

betamode(alpha, beta, l = 0, u = 1)

Arguments

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 0.

u

The second (upper) location parameter of a four-parameter distribution. Default set to 1.

Examples

# 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)

hthaa/betafunctions documentation built on March 10, 2024, 7:20 p.m.