rw_Metropolis: A Metropolis sampler using Rcpp

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

A Metropolis sampler using Rcpp

Usage

1

Arguments

sigma

variance

x0

the number of between-sample random number

N

the number of samples

Value

a List with a random sample of size n and k

Examples

1
2
3
4
5
6
7
## Not run: 
sigma <- 2
x0 <- 25
N <- 2000
res <- rw_Metropolis(sigma, x0, N)

## End(Not run)

DawnGnius/SC19086 documentation built on Jan. 3, 2020, 2:10 a.m.