When starting new projects in RCPP, the biggest hurdle is to re-implement existing code snippets for standard tasks that are not (yet) part of RCPP. I have implementations for certain full-conditional draws coded up efficiently in vectorized R. I have implementations in plain C and C++ that were previously accessed in compiled form throug dyn.load or .C. I started to slowly transition more and more snippets to RCPP C++.
Here's a reimplementation of the GHK simulator from bayesm. Some minor mofidications were necessary. Now it is ready for implementation within larger RCPP projects.
Have fun writing MCMC samplers or doing simulated ML.
Here's a reimplementation of the GHK simulator from bayesm. Some minor mofidications were necessary. Now it is ready for implementation within larger RCPP projects.
Have fun writing MCMC samplers or doing simulated ML.