The script command "coda" is not necessary, unless you want to read in in
coda-format output. Necessary are the other commands: "history & save
(odc)". "save (txt)" lets you read the on-screen output of winbugs later as
a text-file.

Another way is also to take the saved last values of the chains and use them
as new starting values. This is fine but it takes a bit longer because the
model has to be compiled again each time.
The R-code would be like this:

bugs_out1 <- bugs(data=data, inits=inits, parms=parms, model=...
lv <- bugs_out$last.values
#and
bugs_out2 <- bugs(data=data, inits=lv, parms=parms, model=...

Frederic

--
View this message in context: 
http://r.789695.n4.nabble.com/how-to-update-a-bugs-model-from-inside-R-using-R2WinBUGS-tp2288880p3602414.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to