rw_MetropolisC: MetropolisC

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

A Metropolis sampler using Rcpp

Usage

1

Arguments

sigma

the standard deviation of normal distribution

x0

the first element of the sampler

N

the number of samples

Value

a random sample of size n

x

random walk samples

k

rejections

Examples

1
2
3
4
5
## Not run: 
rwC <- rw_MetropolisC(1,25,2000)$x
plot(rwC, type="l", xlab=bquote(sigma == 1), ylab="X", ylim=range(rwC))

## End(Not run)

zhaolotelli/SC19017 documentation built on Jan. 3, 2020, 9:19 p.m.