Learn R Programming

exdqlm (version 0.3.0)

qexal: 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
)

Value

Numeric vector of quantiles (same length as p).

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.

Examples

Run this code
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)

Run the code above in your browser using DataLab