Description Usage Arguments Value Author(s) Examples
Simulates iterates of an independence Metropolis chain with a normal proposal density for an arbitrary real-valued posterior density defined by the user
1 | indepmetrop(logpost,proposal,start,m,...)
|
logpost |
function defining the log posterior density |
proposal |
a list containing mu, an estimated mean and var, an estimated variance-covariance matrix, of the normal proposal density |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.