Description Usage Arguments Value See Also Examples
Make a logistic prior with specified scale
1 | make_logistic_prior(location = 0, scale, ...)
|
location |
Numeric vector; see |
scale |
Numeric vector; see |
... |
Currently not used |
A prior
object, which is a list of two functions:
log_d |
A function for calculating the log of the prior density for
each element of a vector. Calculated with |
log_grad |
A function for calculating the gradient of the log-density for each element of a vector. |
1 2 3 | p = make_logistic_prior(location = 0, scale = 2)
curve(p$log_d(x), from = -5, to = 5)
curve(p$log_grad(x), from = -5, to = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.