James Lenihan
2009-Aug-17 17:06 UTC
[R] Bayesian data analysis - help with sampler function
I have downloaded the Umacs (Universal Markov chain sampler) and submitted the following sample code from Kerman and Gelman. s <-Sampler( J=8, sigma.y =c(15,10,16,11,9,11,10,18), y =c(28, 8,-3,7,-1,1,18,12), theta =Gibbs(theta.update,theta.init), V =Gibbs(V.update,mu.init), mu =Gibbs(mu.update,mu.init), tau =Gibbs(tau.update,tau.init), Trace("theta[1]") ) Error: could not find function "Sampler" Is there anything else I need to download. Thanks, Jim L. [[alternative HTML version deleted]]
Duncan Murdoch
2009-Aug-18 12:06 UTC
[R] Bayesian data analysis - help with sampler function
On 17/08/2009 1:06 PM, James Lenihan wrote:> I have downloaded the Umacs (Universal Markov chain sampler) and submitted the following sample code from Kerman and Gelman. > > s <-Sampler( > J=8, > sigma.y =c(15,10,16,11,9,11,10,18), > y =c(28, 8,-3,7,-1,1,18,12), > theta =Gibbs(theta.update,theta.init), > V =Gibbs(V.update,mu.init), > mu =Gibbs(mu.update,mu.init), > tau =Gibbs(tau.update,tau.init), > Trace("theta[1]") > ) > > Error: could not find function "Sampler" > > Is there anything else I need to download.Looks like you didn't attach the package using library(Umacs). Installing just gets it onto your system, you need to attach it so the objects in it are visible. Duncan Murdoch