Description Usage Arguments Value Author(s) Examples
Simulates iterates of a random walk Metropolis chain for an arbitrary real-valued posterior density defined by the user
1 |
logpost |
function defining the log posterior density |
proposal |
a list containing var, an estimated variance-covariance matrix, and scale, the Metropolis scale factor |
start |
vector containing the starting value of the parameter |
m |
the number of iterations of the chain |
... |
data that is used in the function logpost |
par |
a matrix of simulated values where each row corresponds to a value of the vector parameter |
accept |
the acceptance rate of the algorithm |
Jim Albert
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.