rexal: Random Sample Generation for the exAL Distribution

View source: R/exal.R

rexalR Documentation

Random Sample Generation for the exAL Distribution

Description

Random Sample Generation for the exAL Distribution

Usage

rexal(n, p0 = 0.5, mu = 0, sigma = 1, gamma = 0)

Arguments

n

Positive integer number of samples to draw (scalar).

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.

Value

Numeric vector of length n.

Examples

set.seed(1); length(rexal(10))
rexal(3, p0 = 0.5, mu = c(-1, 0, 1))


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