exponential: Define an exponential prior distribution

Description Usage Arguments Details Value

View source: R/prior.R

Description

exponential(rate)

Usage

1
exponential(rate = 1)

Arguments

rate

the rate parameter lambda in exponential distribution

Details

Define a gamma prior distribution using the rate hyper parameter, by default an exponential(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.