Description Usage Arguments Value See Also Examples
This function runs a simple Metropolis sampler with standard normal target distribution and uniform innovations.
1 | metrop(n, alpha)
|
n |
The number of iterations of the Metropolis sampler. |
alpha |
The tuning parameter of the sampler. The innovations of the sampler are of the form U(-alpha,alpha). |
An R vector containing the output of the sampler.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.