Learn R Programming

exdqlm (version 0.2.0)

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

Value

Numeric vector of length n.

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.

Examples

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

Run the code above in your browser using DataLab