Contains a collection of helper functions to use with 'RBi', the R interface to 'LibBi', described in Murray et al. (2015)
RBi.helpers is collection of helper functions to use with RBi, an R interface to LibBi, a library for Bayesian Inference.
It contains:
adapt_proposal
, to adapt the proposal distribution of a model according to the empirical standard deviations of accepted parametersadapt_particles
, to adapt the number of particles at a given point in parameter space.DIC
, to compute the DIC of a pMCMC runacceptance_rate
, to calculate the acceptance rate of a pMCMC runThe easiest way to install rbi.helpers
is to use the devtools
package:
library(devtools)install_github("sbfnk/rbi.helpers")
plot
function; plotting is now covered by the RBi vignettequiet
option to adapt_mcmc
and adapt_particles