ExponentialR: Create an Exponential distribution (regression...

View source: R/ExponentialR.R

ExponentialRR Documentation

Create an Exponential distribution (regression parameterization)

Description

An exponential distribution in regression parameterization with mean mu.

Usage

ExponentialR(mu = 1)

Arguments

mu

mean of the distribution (default 1). Must be positive.

Details

We recommend reading this documentation on https://zeileis.github.io/distributions3/, where the math will render with additional detail and much greater clarity.

In the following, let X be an Exponential random variable with regression parameterization with mean mu = \mu. For computing densities, probabilities, quantiles, etc., the distribution is reparameterized internally to use the rate \lambda = 1/\mu as in the classic Exponential() distribution.

Support: x \in (0, \infty)

Mean: \mu

Variance: \mu^2

Probability density function (p.d.f):

f(x) = \frac{1}{\mu} e^{-\frac{1}{\mu} x}

Value

An ExponentialR object.

See Also

Other continuous distributions: Beta(), Cauchy(), ChiSquare(), Erlang(), Exponential(), FisherF(), Frechet(), GEV(), GPareto(), Gamma(), Gumbel(), LogNormal(), Logistic(), Normal(), RevWeibull(), SinhArcsinh(), StudentsT(), Tukey(), Uniform(), Weibull()

Examples


set.seed(27)

X <- ExponentialR(2)
X

mean(X)
variance(X)
skewness(X)
kurtosis(X)

random(X, 10)

pdf(X, 2)
log_pdf(X, 2)

cdf(X, 4)
quantile(X, 0.7)

cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 7))

distributions3 documentation built on Nov. 27, 2026, 5:07 p.m.