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
______________________________________________
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.