Specifies a normal distribution truncated to a specified range.

truncnorm(mean, sd, lower, upper)

Arguments

mean

Numeric. Mean of the underlying normal distribution.

sd

Numeric. Standard deviation of the underlying normal distribution.

lower

Numeric. Lower truncation bound.

upper

Numeric. Upper truncation bound.

Value

A list specification for a truncated normal distribution.

Examples

if (FALSE) { # \dontrun{
# AR damping coefficient bounded to [0, 1]
damp_prior <- truncnorm(0.8, 0.2, 0, 1)
} # }