Learn R Programming

clmstan (version 0.1.1)

normal: Normal Distribution for Prior Specification

Description

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

Usage

normal(mu = 0, sigma = 1)

Value

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

Arguments

mu

Mean of the normal distribution. Default: 0

sigma

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

See Also

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

Examples

Run this code
# Create a normal prior
normal(0, 2.5)

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

Run the code above in your browser using DataLab