pBeta.4P: Cumulative Probability Function under the Four-Parameter Beta...

View source: R/betafunctions.R

pBeta.4PR Documentation

Cumulative Probability Function under the Four-Parameter Beta Probability Density Distribution.

Description

Function for calculating the proportion of observations up to a specifiable quantile under the Four-Parameter Beta Distribution.

Usage

pBeta.4P(q, l, u, alpha, beta, lower.tail = TRUE)

Arguments

q

The quantile or a vector of quantiles for which the proportion is 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

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

Value

A vector of proportions of observations falling under specified quantiles 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 cumulative probability at a specific point of
# the distribution (e.g., 0.5)
# using pBeta.4P():
pBeta.4P(q = 0.5, l = 0.25, u = 0.75, alpha = 5, beta = 3)

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