rw.Metropolis: Random walk Metropolis sampler for generating the standard...

Description Usage Arguments Value Examples

View source: R/rw_MetropolisR.R

Description

R function to implement a random walk Metropolis sampler for generating the standard Laplace distribution.

Usage

1

Arguments

sigma

the standard deviance of state X_t of the random walk

x0

the initial state of the random walk

N

the number of samples

Value

random samples of size N

Examples

1
2
3
4
## Not run: 
rw.Metropolis(4,1,100)

## End(Not run)

hudie-lab/SC19036 documentation built on Jan. 2, 2020, 8:45 p.m.