gibbsC: A Gibbs sampler using Rcpp

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

A Gibbs sampler using Rcpp

Usage

1
gibbsC(N, thin, a, b, n)

Arguments

N

the number of samples

thin

the number of between-sample random numbers

a

paramater

b

paramater

n

paramater

Value

a random sample of size n

Examples

1
2
3
4
5
6
7
## Not run: 
rnC <- gibbsC(100,10,2,4,10)
par(mfrow=c(2,1));
plot(rnC[,1],type='l')
plot(rnC[,2],type='l')

## End(Not run)

guoyuanheng/StatComp21058 documentation built on Dec. 23, 2021, 11:15 p.m.