logd_prior | R Documentation |
Evaluates the log probability density of value given a name of a prior pdf and the corresponding hyperparameters
logd_prior(x, pdf, hypers)
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. |
the value of the log density function evaluated at x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.