Dear Bugs list,
I've been playing around with WBDev (it's been a long time since I touched a
Pascal-like program), and I was wondering whether there's a way to test
functions within WinBUGS without having to close and reopen BlackBox. In
addition, in order to test a function, do I _have_ to place it within a
WinBUGS program?
I'm attaching a function and a test program which calculates the binomial
coefficient recursively. You'll need to add
s <- "binomial.coefficient"(s,s) "WBDevBinomialCoefficient.Install"
to Grammar.odc in WBDev/Rsrc.
I really must express my gratitude to the WinBUGS developers for this step
towards open source. There have been things I've wanted to do in WinBUGS for a
while that would either be impossible or terribly clumsy within the WinBUGS
syntax.
Finally, does anyone have a copy of Stan Warford's book on programming
BlackBox? Is it any good?
Best wishes
Simon
-------------------------------------------------------------------
This list is for discussion of modelling issues and the BUGS software.
For help with crashes and error messages, first mail [log in to unmask]
To mail the BUGS list, mail to [log in to unmask]
Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html
Please do not mail attachments to the list.
To leave the BUGS list, send LEAVE BUGS to [log in to unmask]
If this fails, mail [log in to unmask], NOT the whole list
|