randomMHC: A Metropolis-Hastings sampler using Rcpp

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

A Metropolis-Hastings sampler using Rcpp

Usage

1
randomMHC(sigma, x0, N)

Arguments

sigma

the standard deviation of the sample-generating normal distribution

x0

initial values

N

length of Markov Chain

Value

A Markov China of generating samples

Examples

1
2
3
4
## Not run: 
R= randomMHC(2,10,2000)

## End(Not run)

XixuHu/SC19090 documentation built on Jan. 2, 2020, 8:40 p.m.