Learn R Programming

exdqlm (version 0.2.0)

pexal: Cumulative Distribution Function (CDF) for the exAL Distribution

Description

Vectorized over q.

Usage

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

Value

Numeric vector of CDF values (same length as q).

Arguments

q

Numeric vector of quantiles.

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
pexal(0)
pexal(c(-1, 0, 1), p0 = 0.5, mu = 0, sigma = 1, gamma = 0.1)

Run the code above in your browser using DataLab