| gamma | R Documentation |
Creates a gamma distribution object for use with prior().
gamma(alpha, beta)
alpha |
Shape parameter of the gamma distribution. Must be positive. |
beta |
Rate parameter of the gamma distribution. Must be positive. |
An object of class "clm_dist" representing a gamma distribution.
This function masks base::gamma(). To use the base gamma function,
use base::gamma() explicitly.
prior(), normal(), student_t(), cauchy()
# Create a gamma prior
gamma(2, 0.1)
# Use with prior() for degrees of freedom
prior(gamma(2, 0.1), class = "df")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.