Dear All: Could anybody help me figure out why I get the Error message below while I running the example code of bugs() function in R2OpenBUGS packages? I have tried the code both in Win 7 and Ubuntu 12.04, but they show the same message. My R version is 2.15.1 in win7 and 2.15.0 in Ubuntu. Many thanks ! Best, Yilong> schools.sim <- bugs(data, inits, parameters, model.file,+ n.chains=3, n.iter=5000)Error in matrix(, n.sims, n.parameters) :invalid 'nrow' value (too large or NA) [[alternative HTML version deleted]]
On 13.07.2012 03:18, elong zhang wrote:> Dear All: > > Could anybody help me figure out why I get the Error message below while I > running the example code of bugs() function in R2OpenBUGS packages? I have > tried the code both in Win 7 and Ubuntu 12.04, but they show the same > message. My R version is 2.15.1 in win7 and 2.15.0 in Ubuntu. Many thanks !1. Please always send reproducible examples. 2. Which version of OpenBUGS and which version of R2OpenBUGS (for both there are recent updates) Uwe Ligges> Best, > > Yilong > > >> schools.sim <- bugs(data, inits, parameters, model.file,+ n.chains=3, n.iter=5000)Error in matrix(, n.sims, n.parameters) : > invalid 'nrow' value (too large or NA) > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
I just ran into this problem on R2OpenBUGS_3.2-1 using OpenBUGS322 (on Mac Lion through wine). The error is being thrown when attempting to parse the index file in bugs.sims: index <- read.table("CODAindex.txt", header = FALSE, sep=" ") The CODAindex file is now csv, removing the space delimiter leads to a working bugs.sims. Regards, Dan -- View this message in context: http://r.789695.n4.nabble.com/R2OpenBUGS-quesion-tp4636392p4658129.html Sent from the R help mailing list archive at Nabble.com.
I recently installed OpenBUGS322 and obtained the same error using the schools example. I suspect that I will run into difficulties with other examples. I want to download the older version but the BUGS website does not seem to have OpenBUGS321 available any longer. Are there patches for OpenBUGS322 or any other location to obtain OpenBUGS321? Any suggestion will be greatly appreciated. Paul -- View this message in context: http://r.789695.n4.nabble.com/R2OpenBUGS-quesion-tp4636392p4658464.html Sent from the R help mailing list archive at Nabble.com.