Error In Handleresres
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error during modelCompile() [OpenBUGS] up vote 0 down vote favorite I am trying to do Bayesian NHST between two groups. Each group consists of many variables, and in order to avoid multiple hypothesis corrections I opted for Bayesian method. However my code in OpenBUGS is giving the following error: "Error in handleRes(res) : Internal "trap" error in OpenBUGS, or non-existent module or procedure called." I am using BRugs R-package with modelCheck(...) - model is syntactically correct and with modelData(...) - data loaded are appearing but when tried to compile with modelCompile(..) error pops up. I am quite new to the OpenBUGS. What does this error mean?? r bayesian openbugs share|improve this question edited Jun 5 '15 at 16:51 David Manheim 1,8481334 asked Sep 3 '13 at 13:48 koundy 2,1681626 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote This means that OpenBUGS has crashed - it's not your fault, but the program's fault for not giving a proper error message. The Windows interface would be slightly more, but not much more, informative than the R interface in this circumstance, and give a "trap" window. The OpenBUGS manual gives some hints on why this might happen and possible solutions. share|improve this answer answered Sep 4 '13 at 11:03 Chris Jackson 74136 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answe
this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ BRugs: error when compiling model Using: R version 3.0.1 (2013-05-16) -- "Good Sport" Platform: x86_64-w64-mingw32/x64 (64-bit) OpenBUGS version 3.2.2 rev 1063 BRugs version 0.8-1 Hi there, When using the modelCompile() function in BRugs package I get the following error: Error in handleRes(res) : NA In addition: Warning message: running command '"C:/Program Files/R/R-3.0.1/library/BRugs/exec/BugsHelper.exe" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/trash" "filef441bdb5e62.bug" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/cmds.txt" "1"' had status 5 The model is as follows: MODEL { for (i in 1:7932) { for (j in 1:2) { Y[i,j] ~ dpois(mu[i, j]) http://stackoverflow.com/questions/18594004/error-during-modelcompile-openbugs log(mu[i, j]) <- alpha[j] + log(cars[i]) + V[i,j] + U[i] V[i,j] ~ dnorm(0, tau.un[j]) http://r.789695.n4.nabble.com/BRugs-error-when-compiling-model-td4673140.html } } U[1:7932] ~ car.normal(adj[], weights[], num[], tau.spatial) for (k in 1:sumNumNeigh) {weights[k]<-1} for(j in 1:2){ alpha[j] ~ dnorm( 0, 0.0001) tau.un[j] ~ dgamma(0.5, 0.0005) sigma.tau[j] <- 1/tau.un[j] } tau.spatial ~ dgamma(0.5, 0.0005) sigma.spatial <- 1/tau.spatial } There are no NA's in my data, and the model compiles in Openbugs. Could it be an issue with 64bit R? Thanks! Charlie Nash ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code. Uwe Ligges-3 Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: BRugs: error when compiling model Please specify a reproducible example, i.e. what you did exactly, all the way before the error message. Best, Uwe Ligges On 05.08.2013 17:06, Nash, Charles T C wrote: > Using: > > R version 3.0.1 (2013-05-16) -- "Good Sport" > Platform: x86_64-w64-mingw32/x64 (64-bit) > OpenBUGS
(64-bit)OpenBUGS version 3.2.2 rev 1063BRugs version 0.8-1Hi there,When using http://grokbase.com/t/r/r-help/1385wa8nz8/r-brugs-error-when-compiling-model the modelCompile() function in BRugs package I get the https://stat.ethz.ch/pipermail/r-help/2011-June/280228.html following error:Error in handleRes(res) : NAIn addition: Warning message:running command '"C:/Program Files/R/R-3.0.1/library/BRugs/exec/BugsHelper.exe" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/trash" "filef441bdb5e62.bug" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/cmds.txt" "1"' had status 5The model is as follows:MODEL {for (i in 1:7932) {for (j in 1:2) {Y[i,j] ~ dpois(mu[i, j])log(mu[i, error in j]) <- alpha[j] + log(cars[i]) + V[i,j] + U[i]V[i,j] ~ dnorm(0, tau.un[j])}}U[1:7932] ~ car.normal(adj[], weights[], num[], tau.spatial)for (k in 1:sumNumNeigh) {weights[k]<-1}for(j in 1:2){alpha[j] ~ dnorm( 0, 0.0001)tau.un[j] ~ dgamma(0.5, 0.0005)sigma.tau[j] <- 1/tau.un[j]}tau.spatial ~ dgamma(0.5, 0.0005)sigma.spatial <- 1/tau.spatial}There are no NA's in my data, and the model error in handleresres compiles in Openbugs. Could it be an issue with 64bit R?Thanks!Charlie Nash reply Tweet Search Discussions Search All Groups r-help 1 response Oldest Nested Uwe Ligges Please specify a reproducible example, i.e. what you did exactly, all the way before the error message. Best, Uwe Ligges Uwe Ligges at Aug 5, 2013 at 3:34 pm ⇧ Please specify a reproducible example, i.e. what you did exactly, allthe way before the error message.Best,Uwe LiggesOn 05.08.2013 17:06, Nash, Charles T C wrote:Using:R version 3.0.1 (2013-05-16) -- "Good Sport"Platform: x86_64-w64-mingw32/x64 (64-bit)OpenBUGS version 3.2.2 rev 1063BRugs version 0.8-1Hi there,When using the modelCompile() function in BRugs package I get the following error:Error in handleRes(res) : NAIn addition: Warning message:running command '"C:/Program Files/R/R-3.0.1/library/BRugs/exec/BugsHelper.exe" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/trash" "filef441bdb5e62.bug" "C:/Users/cnash/AppData/Local/Temp/RtmpMlFBjk/cmds.txt" "1"' had status 5The model is as follows:MODEL {for (i in 1:7932) {f
2.13.0 (crashes R GUI) Next message: [R] Can't compile rtiff for OSX Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] On 05.06.2011 23:42, Chris Chapman wrote: > Thanks again. FWIW, I tried an even older R version (2.11) + BRugs 0.53 > and 0.70 ... but got the same errors as with the iterations reported > below. So I'm giving up on trying to solve the issue. > > My workaround is that I'm using the R2WinBUGS package instead. So far > that has worked well -- I've run a few iterations of models with no > problems. > > Specifically, none of the errors below have occurred (this is using R > 2.13.0, R2WinBUGS 2.1-18, OpenBUGS 3.0.3 as installed by BRugs, running > under Windows 7/32-bit). Unlike with BRugs, I'm able to use R2WinBUGS to > run a model, change it, run again with new parameters, etc., with no > crashes or other problems yet. Strange, since the BRugs example always worked well for me and some others. Hence I cannot tell where the interaction comes from that causes the crashes. > Uwe: thank you for your work there as well! Well, I am very far behind my schedule for BRugs!!! Best wishes, uwe > -- Chris > > -------------------------------------------------- > From: "Uwe Ligges"