Skip to content
Back to formatted view

Raw Message

Message-ID: <1308229853419-3602414.post@n4.nabble.com>
Date: 2011-06-16T13:10:53Z
From: Frederic Holzwarth
Subject: how to update a bugs-model from inside R using R2WinBUGS
In-Reply-To: <1291291263844-3068980.post@n4.nabble.com>

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.