From: Uwe L. <li...@st...> - 2008-09-12 09:39:54
|
I cannot reproduce on Windows even when using 3 different directories: - one for data - one as working directory - one for the model file schools <- read.table ("d:/schools.dat", header=T) J <- nrow (schools) y <- schools$estimate sigma.y <- schools$sd data <- list ("J", "y", "sigma.y") inits <- function() list (theta=rnorm(J,0,100), mu.theta=rnorm(1,0,100), sigma.theta=runif(1,0,100)) parameters <- c("theta", "mu.theta", "sigma.theta") setwd("d:/temp") schools.sim <- bugs (data, inits, parameters, "d:/uwe/schools.bug", n.chains=3, n.iter=1000, working.directory="d:/temp") Simply works for me .... Uwe Rodney Sparapani wrote: > Gorjanc Gregor wrote: >> >> Can you please post a reproducible example so that we can check what >> is going on. >> >> gg >> >> >> >> > You will find it attached. > |