qexal: Quantile Function for the exAL Distribution

View source: R/exal.R

qexalR Documentation

Quantile Function for the exAL Distribution

Description

Vectorized over p.

Usage

qexal(
  p,
  p0 = 0.5,
  mu = 0,
  sigma = 1,
  gamma = 0,
  lower.tail = TRUE,
  log.p = FALSE
)

Arguments

p

Numeric vector of probabilities in (0, 1).

p0

Probability level used in the quantile parametrization. Scalar in (0, 1). Default 0.5.

mu

Location parameter (scalar). Default 0.

sigma

Scale parameter (scalar, strictly positive). Default 1.

gamma

Skewness parameter controlling asymmetry (scalar). Must be within valid bounds implied by p0. Default 0.

lower.tail

Logical scalar; if TRUE (default) return P(X \le q), otherwise P(X > q).

log.p

Logical scalar; if TRUE, return log-probabilities.

Value

Numeric vector of quantiles (same length as p).

Examples

p <- seq(0.1, 0.9, by = 0.2)
q <- qexal(p, p0 = 0.5, mu = 0, sigma = 1, gamma = 0)
all.equal(p, pexal(q, p0 = 0.5, mu = 0, sigma = 1, gamma = 0), tol = 1e-4)


exdqlm documentation built on Feb. 8, 2026, 1:06 a.m.