Re: [R] sample exponential r.v. by MCMC

2010-09-29 Thread Zhongyi Yuan
Hi Dennis, Sorry for not being considerate. I should have at least mentioned I was using MCMCpack. I have no idea about traceback() though. I appreciate your suggestion. Best, Zhongyi On Wed, Sep 29, 2010 at 5:00 PM, Dennis Murphy wrote: > Hi: > > It might be helpful to inform the list whic

[R] sample exponential r.v. by MCMC

2010-09-29 Thread Zhongyi Yuan
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 o