This R implementation consists in 2 packages that need to be installed in this order:
GibbsPosteriorRequired
GibbsPosterior
As GibbsPosterior
uses C++ code, the package Rcpp is a prerequisite.
Moreover, GibbsPosterior
makes use of the GNU Scientific Library so the package RcppGSL is also required.
If it is not already done, install Rcpp and RcppGSL.
Move to the GibbsPosterior/
folder and execute the following commands:
R CMD build GibbsPosteriorRequired
R CMD INSTALL GibbsPosteriorRequired
cd ..
R CMD build GibbsPosterior
R CMD INSTALL GibbsPosterior
The GibbsPosteriorC
functions samples from the Gibbs reference posterior distribution on the correlation lengths for Kriging models with Matérn anisotropic (tensorized or geometric) kernel.
It does this using a Metropolis-within-Gibbs algorithm, as detailed in the article Optimal compromise between incompatible conditional probability distributions, with application to Objective Bayesian Kriging
It expects the following arguments, in this order:
`GibbsPosteriorC' produces an R object whose "posterior" attribute contains the sample from the Gibbs reference posterior distribution.
An exemple is given in the script test_basique.r
in the tests/
folder.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.