Description Usage Arguments Value Author(s) References Examples

This function compares three scales of uniform proposals when the target is a standard normal distribution and the algorithm is a Metropolis-Hastings algorithm. This is an example from the original Hastings' (1970) paper.

1 | ```
hastings(nsim = 10^3)
``` |

`nsim` |
Number of Metropolis-Hastings steps |

The outcome of the function is a graph with nine panels compariing the three uniform proposals in terms of shape, fit and autocorrelation.

Christian P. Robert and George Casella

From Chapter 6 of **EnteR Monte Carlo Statistical Methods**

1 | ```
hastings(10^4)
``` |

```
Loading required package: MASS
Loading required package: coda
```

mcsm documentation built on May 30, 2017, 1:33 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.