Specifies a half-normal distribution (normal distribution truncated to positive values).

halfnorm(sd)

Arguments

sd

Numeric. Scale parameter (standard deviation of underlying normal).

Value

A list specification for a half-normal distribution.

Examples

if (FALSE) { # \dontrun{
# Prior for standard deviation parameters
sigma_prior <- halfnorm(0.1)
} # }