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

Re: [R] R2WinBugs problem

2010-09-14 Thread Uwe Ligges
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

[R] R2WinBugs problem

2010-09-09 Thread Mark Irwin
I'm having difficulty running R2WinBugs on a setup that previously worked for me (Dell Laptop, Windows XP service pack 3, R 2.11.1, WinBugs 1.43) . When I issue the following command smds.sim <- bugs (data, inits, parameters, "SMDSbrandLoc2.bug", debug = T, n.thin = n.thin, n.chains = n.

Re: [R] R2WinBUGS problem

2008-07-25 Thread Uwe Ligges
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

[R] R2WinBUGS problem

2008-07-24 Thread Troels Ring
Dear friends - I'm on winXP, R 2.71 - I have with some help dveloped this multivariate normal model, which gives very plausible results in WinBUGS even without any initial values specified. However, when I then try to run the same model via the bugs function in R2WinBUGS with inits specified as

[R] R2WinBUGS problem

2008-07-23 Thread Troels Ring
Dear friends - I'm on winXP, R 2.71 - I have with some help dveloped this multivariate normal model, which gives very plausible results in WinBUGS even without any initial values specified. However, when I then try to run the same model via the bugs function in R2WinBUGS with inits specified as

Re: [R] R2Winbugs problem

2007-09-25 Thread bbolker
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,

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") -- View this message in

[R] R2Winbugs problem

2007-09-25 Thread Sam_zhz
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, "r") Thanks Sam_zhz -- View t