gamma: Gamma Distribution for Prior Specification

View source: R/priors.R

gammaR Documentation

Gamma Distribution for Prior Specification

Description

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

Usage

gamma(alpha, beta)

Arguments

alpha

Shape parameter of the gamma distribution. Must be positive.

beta

Rate parameter of the gamma distribution. Must be positive.

Value

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

Note

This function masks base::gamma(). To use the base gamma function, use base::gamma() explicitly.

See Also

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

Examples

# Create a gamma prior
gamma(2, 0.1)

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

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