[R] R2winbugs : vectorization
Philip A. Viton
viton.1 at osu.edu
Wed Dec 17 19:20:23 CET 2008
Many thanks to all responders. It turns out that there is a winbugs
update available, which defines a new version of inprod, inprod2.
Using inprod2 the vectorized code runs in about the same time as the
"scalar" version.
On the print problem: the issue here turns out to be that the arm
package (or one of the packages it loads) resets digits to 2. So the
solution is to reset digits ( options("digits"=5) or whatever) after
loading your packages.
Thanks again!
------------------------
Philip A. Viton
City Planning, Ohio State University
275 West Woodruff Avenue, Columbus OH 43210
viton.1 at osu.edu
More information about the R-help
mailing list