Dear R users,

I am leaning MCMC sampling, and have a problem while trying to sample
exponential r.v.'s via the following code:

samp <- MCMCmetrop1R(dexp, theta.init=1, rate=2,
                          mcmc=5000, burnin=500,
                          thin=10, verbose=500, logfun=FALSE)

I tried other distribtions such as Normal, Gamma with shape>1, it works
perfectly fine. Can someon tell me why?
Thank you for your help.

Best,
Zhongyi

	[[alternative HTML version deleted]]

