normal: Normal Distribution for Prior Specification

View source: R/priors.R

normalR Documentation

Normal Distribution for Prior Specification

Description

Creates a normal distribution object for use with prior().

Usage

normal(mu = 0, sigma = 1)

Arguments

mu

Mean of the normal distribution. Default: 0

sigma

Standard deviation of the normal distribution. Must be positive. Default: 1

Value

An object of class "clm_dist" representing a normal distribution.

See Also

prior(), gamma(), student_t(), cauchy()

Examples

# Create a normal prior
normal(0, 2.5)

# Use with prior()
prior(normal(0, 2.5), class = "b")

clmstan documentation built on June 29, 2026, 5:06 p.m.