Hi all

I am using WinBugs 14, and  packages arm, rbugs
to call WinBugs from R. I have to do the analysis
for a series for data sets. I have a for loop which calls function bugs
and then saves the result in Res[[i]]. Everything works just fine in the R
script.

However the for loop is for i in 1:100
It  works for i in 1:50
and in 51 WinBugs stops,  with the message
Trap, undefined real result

 I want to find a way to continue
with 52, 53, ..., without having the results for 51.

Is there something in bugs function that can help me. I have seen ?bugs but
I didn't
find anything.

I have tried failwith {plyr} but I think I need something else to
automatically close Log and WinBUGS window,
without stopping the process.

Thanks a lot for your help.

Alex

        [[alternative HTML version deleted]]

______________________________________________
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