rwMetropolisC: A random walk Metropolis sampler using Rcpp

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Implement a random walk Metropolis sampler for generating the standard Laplace distribution using Rcpp

Usage

1

Arguments

sigma

parameter for produces a normal distribution random sample

x0

Initial value

N

the number of samples

Value

a random sample of size n

Examples

1
2
3
4
5
6
## Not run: 
sigma <- c(.05, .5, 2, 16)
x0 <- 25
rw1c <- rwMetropolisC(sigma[1], x0, N)

## End(Not run)

sc19011/sc19011 documentation built on Jan. 3, 2020, 12:16 a.m.