logd_prior: logd_prior

View source: R/setup_mcmc.R

logd_priorR Documentation

logd_prior

Description

Evaluates the log probability density of value given a name of a prior pdf and the corresponding hyperparameters

Usage

logd_prior(x, pdf, hypers)

Arguments

x

numeric; vector of values.

pdf

character; name of a probability function. Must conform to base R nomenclature of d/r function pairs. Can include trunc for truncated pdfs from package truncdist.

hypers

list; a list of parameters to be passed to the density function.

Value

the value of the log density function evaluated at x


pboesu/debinfer documentation built on Nov. 17, 2022, 5:51 p.m.