Learn R Programming

prefeR (version 0.1.3)

Normal: A convenience function for generating Normal priors.

Description

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

Run this code
# NOT RUN {
Normal(0, 1)(1) == dnorm(1, log = TRUE)
# }

Run the code above in your browser using DataLab