Re: [R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
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

Re: [R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
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

[R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
I have successfully used R2WinBUGS in the past and an trying to use basically the same code with some different data but I'm getting the following error: > out <- bugs(data=win.data, inits=inits, parameters.to.save=params, > model.file = "PoissonGLMM.txt", n.chains=nc, n.iter=ni, n.burn=nb, > n.th

[R] R2WinBUGS problem: bugs - storage.mode error

2011-07-10 Thread dhocking
I have successfully used R2WinBUGS in the past and an trying to use basically the same code with some different data but I'm getting the following error: > out <- bugs(data=win.data, inits=inits, parameters.to.save=params, > model.file = "PoissonGLMM.txt", n.chains=nc, n.iter=ni, n.burn=nb, > n.th