Skip to contents

A convenience function for generating Exponential priors.

Usage

Exp(mu = 1)

Arguments

mu

The mean of the exponential distribution, i.e. \(1/rate\)

Value

A function yielding the log-PDF at x of a exponential distribution with given statistics.

See also

Other priors: Flat(), Normal()

Examples

Exp(1)(1) == dexp(1,1, log = TRUE)
#> [1] TRUE