qBeta.4P: Quantile Given Probability Under the Four-Parameter Beta...

View source: R/betafunctions.R

qBeta.4PR Documentation

Quantile Given Probability Under the Four-Parameter Beta Distribution.

Description

Function for calculating the quantile (i.e., value of x) for a given proportion (i.e., the value of y) under the Four-Parameter Beta Distribution.

Usage

qBeta.4P(p, l, u, alpha, beta, lower.tail = TRUE)

Arguments

p

A vector (or single value) of proportions or probabilities for which the corresponding value of x (i.e., the quantiles) are to be calculated.

l

The first (lower) location parameter.

u

The second (upper) location parameter.

alpha

The first shape parameter.

beta

The second shape parameter.

lower.tail

Logical. Whether the quantile(s) to be calculated is to be under the lower or upper tail. Default is TRUE (lower tail).

Value

A vector of quantiles for specified probabilities or proportions of observations under the four-parameter Beta distribution.

Examples

# Assume some variable follows a four-parameter Beta distribution with
# location parameters l = 0.25 and u = 0.75, and shape parameters alpha = 5
# and beta = 3. To compute the quantile at a specific point of the
# distribution (e.g., 0.5) using qBeta.4P():
qBeta.4P(p = 0.5, l = 0.25, u = 0.75, alpha = 5, beta = 3)

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