On 01.02.2012 18:43, Pauline Pantoja wrote:
Hi, I am trying to use WinBUGS using R, but i am having some problems using bugs function: out<- bugs(data = win.data, inits = inits, parameters.to.save = params, model.file = "model.txt", n.thin = nt, n.chains = nc, n.burnin = nb, n.iter = ni, debug = TRUE, DIC = TRUE, working.directory = getwd()) ls() WinBUGS file is in working directory=D:/Line/documents
You have installed WinBUGS there? A very unusual location for a software installation. Anyway, use the argument "bugs.directory" as ?bugs suggests to set the directory where WinBUGS lives.
You may want to switch to a more recent version for controlling BUGS sampling, e.g. the BRugs package that does it more "integrated" into R or R2OpenBUGS as the OpenBUGS interface.
Uwe Ligges
but R looks for winBugs at C:/Program Files/WinBUGS14/. I already had changed the working directory for D:/Line/documents using setwd () function and it still appears this error message: In file(con, "rb") : cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': No such file or directory Erro em bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE, : WinBUGS executable does not exist in c:/Program Files/WinBUGS14/ Além disso: Warning message: In list.files(bugs.directory) : list.files: 'c:/Program Files/WinBUGS14/' is not a readable directory Can anyone help me? Thank you. [[alternative HTML version deleted]] ______________________________________________ R-help@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.
______________________________________________ R-help@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.