gamma_p: Define a gamma prior

View source: R/ui_priors.R

gamma_pR Documentation

Define a gamma prior

Description

Note the name of the function to define a prior (gamma_p), in order to avoid confusion with the R mathematical function gamma.

Usage

gamma_p(alpha, beta)

Arguments

alpha

Shape parameter (equivalent to the shape parameter of R's rgamma).

beta

Rate parameter (equivalent to the rate parameter of R's rgamma).

Value

A list defining the prior.

Examples

gamma_p(9, 2)
hist(sample_from_prior(gamma_p(9, 2), 1e3))


isotracer documentation built on Sept. 22, 2023, 1:07 a.m.