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 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]]

