Learn R Programming

clmstan (version 0.1.1)

cauchy: Cauchy Distribution for Prior Specification

Description

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

Usage

cauchy(mu = 0, sigma = 1)

Value

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

Arguments

mu

Location parameter. Default: 0

sigma

Scale parameter. Must be positive. Default: 1

See Also

prior(), normal(), gamma(), student_t()

Examples

Run this code
# Create a Cauchy prior (weakly informative)
cauchy(0, 2.5)

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

Run the code above in your browser using DataLab