Description Usage Arguments Value Author(s)
This function creates and returns a function which implements a Metropolis-Hastings updater.
1 | metropolis(target, rprop, dprop = NULL)
|
target |
target distribution function. Function should accept current (population of) state(s) as its first parameter and return a vector containing the density evaluation(s). |
rprop |
either a function, or a list of functions. Proposal generator functio(n). |
dprop |
either a function, a list of functions or NULL. Proposal density function(s), NULL value means the proposal density is symmetric. |
a function which implements the Metropolis-Hasting updater.
Grady Weyenberg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.