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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to