Learn R Programming

clmstan (version 0.1.1)

student_t: Student-t Distribution for Prior Specification

Description

Creates a Student-t distribution object for use with prior().

Usage

student_t(df = 3, mu = 0, sigma = 1)

Value

An object of class "clm_dist" representing a Student-t distribution.

Arguments

df

Degrees of freedom. Must be positive. Default: 3

mu

Location parameter. Default: 0

sigma

Scale parameter. Must be positive. Default: 1

See Also

prior(), normal(), gamma(), cauchy()

Examples

Run this code
# Create a Student-t prior with heavy tails
student_t(3, 0, 2.5)

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

Run the code above in your browser using DataLab