Learn R Programming

clmstan (version 0.1.1)

gamma: Gamma Distribution for Prior Specification

Description

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

Usage

gamma(alpha, beta)

Value

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

Arguments

alpha

Shape parameter of the gamma distribution. Must be positive.

beta

Rate parameter of the gamma distribution. Must be positive.

See Also

prior(), normal(), student_t(), cauchy()

Examples

Run this code
# Create a gamma prior
gamma(2, 0.1)

# Use with prior() for degrees of freedom
prior(gamma(2, 0.1), class = "df")

Run the code above in your browser using DataLab