Skip to contents

A convenience function for generating Normal priors.

Usage

Normal(mu = 0, sigma = 1)

Arguments

mu

The mean of the normal distribution

sigma

The standard deviation of the prior

Value

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

See also

Other priors: Exp(), Flat()

Examples

Normal(0, 1)(1) == dnorm(1, log = TRUE)
#> [1] TRUE