Sorry for continuing to reply to myself. I believe that my problem was
putting a factor ("plot") in my data for the bugs(data,...) call. I still
have stuff to work out in the code but I don't get the error if I exclude
plot from the win.data <- list(...) assignment. I have to think if that will
now
Sorry for the additional post - I received the suggestion to include the
following additional information:
*> traceback()*
5: FUN(X[[12L]], ...)
4: lapply(data, formatC, digits = digits, format = "E")
3: write.datafile(lapply(data, formatC, digits = digits, format = "E"),
file.path(dir, da
If the exactly same code runs on one machine and not on another where R
version, script, model file, inits, data etc. are all identical, then I
suspect you have different versions of R2WinBUGS installed.
Please check is really all files and all version numbers are the same.
If you still have
Dear Troels,
it is possible to start without inits if the problem to solve is
appropriate, here is the changed "schools" example from the help page:
model.file <- system.file(package="R2WinBUGS", "model", "schools.txt")
data(schools)
J <- nrow(schools)
y <- schools$estimate
sigma.y <- schools
Sam_zhz wrote:
>
> Just while I use R2Winbugs, the following error will be presented. Please
> tell me how to cope with.
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file 'codaIndex.txt', reason 'No such file or directory' in:
> file(file,
5 matches
Mail list logo