gamma: Define a gamma prior distribution

Description Usage Arguments Details Value

View source: R/prior.R

Description

gamma(shape,rate)

Usage

1
gamma(shape = 2, rate = 1)

Arguments

shape

the form parameter alpha in gamma distribution

rate

the rate parameter beta in gamma distribution

Details

Define a gamma prior distribution using the hyper parameters shape and rate, by default an gamma(2,1) distribution is return.

Value

a numerical vector interpreted as a prior in Stan


bayesforecast documentation built on June 17, 2021, 5:14 p.m.