On 23.12.2014 08:46, thanoon younis wrote:
Dear all R-members
I have a problem with R when i wanted to call WinBUGS from R as following:

#Call WinBUGS
     model<-bugs(data,inits,parameters,model.file="D:/Run/model.txt",
     n.chains=2,n.iter=5000,n.burnin=1000,n.thin=1,'DIC=True',

???
You need DIC=TRUE rather than 'DIC=True' so without quotes and correct capitalization.


     bugs.directory="c:/Program Files/WinBUGS14/",
     working.directory="D:/Run/")


and the error is

Error in bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE,
  :
   Look at the log file and
try again with 'debug=TRUE' to figure out what went wrong within Bugs.

And what happens if your do that? I mean "try again with 'debug=TRUE' to figure out what went wrong within Bugs."

Best,
Uwe Ligges



how can i solve this problem please?

Any guidance would be highly appreciated.











______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to