For an introduction to MCMC, Metropolis and Gibbs sampler:
C. Andrieu et al., An introduction to MCMC for Machine Learning,
Machine Learning, 50 (2003) 5-43, https://doi.org/10.1023/A:1020281327116
Some simple examples (just run the script to check that everything is well installed)
simple_simulations.R
(JAGS `improperly' used as random generator,
to generate quantities following normal, binomial, Poisson and
exponential distributions)
Please install also the R package
coda.
(In order to check that it is installed use the R command library(coda):
if you get no warning message it is ok)