This package implements the methodology developed in A numerically stable algorithm for integrating Bayesian models using Markov melding. This package provides two functions:
wsre()
for estimating the self-density ratio of interest,evaluate()
for evaluating the output ofwsre()
.
See the vignette for details on using these functions. I'd also suggest looking at the tests, particularly:
test_evaluate
for additional examples on callingevaluate()
, particularly in 2 or more dimension,test_wsre-main
for more simple example calls towsre()
.
If a .stan
file has been modified, call:
devtools::load_all()
if not, proceed straight to:
devtools::document()
devtools::test()
devtools::install()
Sometimes the NAMESPACE file will get out of sync. It will need to be deleted,
and devtools::document()
has to be run before devtools::load_all()
.