Or even easier: Use BRugs which has a considerably cleaner interface and
does not need to restart the WinBUGS executable again and again.
Uwe Ligges
On 13.04.2010 22:45, Yihui Xie wrote:
If you are using R2WinBUGS, I guess you may put them in a loop like:
# models
...
data_i[j]~dnorm(...)
If you are using R2WinBUGS, I guess you may put them in a loop like:
# models
...
data_i[j]~dnorm(...)
...
# save them in a sequence of files with names like 'model_i.bug'
# write.model() might help?
# then call bugs()
for(i in names.of.your.100.datasets){
bugs(data=i,...,model.file='model_i.bu
Hi:
Is there a way we can set up WINBUGS to run 100 simulated datasets on the
same model and output results? Or do we have to call in each dataset at a
time and repeat the process 100 times manually?
Thanks
Anamika
[[alternative HTML version deleted]]
___
3 matches
Mail list logo