[R] Bayesian data analysis - help with sampler function
Duncan Murdoch
murdoch at stats.uwo.ca
Tue Aug 18 14:06:49 CEST 2009
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
More information about the R-help
mailing list