betamedian: Compute Median of Two- and Four-Parameter Beta Probability...

View source: R/betafunctions.R

betamedianR Documentation

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

Description

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

Usage

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

Arguments

alpha

The alpha shape parameter.

beta

The beta shape parameter.

l

The first (lower) location parameter. Default set to 0.

u

The second (upper) location parameter. Default set to 1.

Examples

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

betafunctions documentation built on May 29, 2024, 1:13 a.m.