Re: [R] WinBUGS Question

2010-04-14 Thread Uwe Ligges
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(...)

Re: [R] WinBUGS Question

2010-04-13 Thread Yihui Xie
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

[R] WinBUGS Question

2010-04-13 Thread Anamika Chaudhuri
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]] ___