Description Usage Arguments Value Examples
View source: R/rw_MetropolisR.R
R function to implement a random walk Metropolis sampler for generating the standard Laplace distribution.
1 | rw.Metropolis(sigma, x0, N)
|
sigma |
the standard deviance of state |
x0 |
the initial state of the random walk |
N |
the number of samples |
random samples of size N
1 2 3 4 | ## Not run:
rw.Metropolis(4,1,100)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.