Skip to contents

Density, distribution function, quantile function, and random generation for the exponentially modified Gaussian distribution with mean mu and standard deviation sigma of the gaussian component, as well as scale beta of the exponential component.

Usage

dexgaussian(x, mu, sigma, beta, log = FALSE)

pexgaussian(q, mu, sigma, beta, lower.tail = TRUE, log.p = FALSE)

qexgaussian(p, mu, sigma, beta, lower.tail = TRUE, log.p = FALSE, tol = 1e-08)

rexgaussian(n, mu, sigma, beta)

Arguments

x, q

Vector of quantiles.

mu

Vector of means of the combined distribution.

sigma

Vector of standard deviations of the gaussian component.

beta

Vector of scales of the exponential component.

log

Logical; If TRUE, values are returned on the log scale.

lower.tail

Logical; If TRUE (default), return P(X <= x). Else, return P(X > x) .

log.p

Logical; If TRUE, values are returned on the log scale.

p

Vector of probabilities.

tol

Tolerance of the approximation used in the quantile function. Default 1e-8.

n

Number of draws to sample from the distribution.

Details

See vignette("brms_families") for details on the parameterization.