Description Usage Arguments Value Author(s) Examples
Implements Metropolis sampling for an arbitrary continuous probability distribution
| 1 |   metropolis(logpost, current, C, iter, ...)
 | 
| logpost | function definition of the log probability function | 
| current | starting value of algorithm | 
| C | half-width of proposal interval | 
| iter | number of iterations | 
| ... | other inputs needed in logpost function | 
| S | vector of simulated values | 
| accept_rate | acceptance rate of algorithm | 
Jim Albert
| 1 2 3 4 5 6 7 8 9 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.