Learn R Programming

bayess version 1.6

A R library associated to the book

Bayesian Essentials with R
Jean-Michel Marin and Christian P. Robert
Springer-Verlag, New York, 2014

The package bayess contains a collection of functions that allows the reenactment of the R programs used in the book Bayesian Essentials with R without further programming. R code being available as well, they can be modified by the user to conduct one's own simulations.

To install the bayess package

  • you can use the function install_github from the package remotes:

install_github("jmm34/bayess")

  • you can download the file bayess_1.6.tar.gz and use the command:

install.packages("bayess_1.6.tar.gz", repos = NULL, type = "source")

  • the package is also available on the CRAN

Copy Link

Version

Install

install.packages('bayess')

Monthly Downloads

147

Version

1.7

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

JeanMichel Marin

Last Published

August 28th, 2026

Functions in bayess (1.7)

ARmh

Metropolis--Hastings evaluation of the posterior associated with an AR(p) model
ardipper

Accept-reject algorithm for the open population capture-recapture model
bank

bank dataset (Chapter 4)
hmmeantemp

Metropolis-Hastings with tempering steps for the mean mixture posterior model
hmnoinflogit

Metropolis-Hastings for the logit model under a noninformative prior
gibbsnorm

Gibbs sampler for a generic mixture posterior distribution
gibbsmean

Gibbs sampler on a mixture posterior distribution with unknown means
probitnoinflpost

Log of the posterior density for the probit model under a non-informative model
pcapture

Posterior probabilities for the multiple stage capture-recapture model
hmflatprobit

Metropolis-Hastings for the probit model under a flat prior
gibbs

Gibbs sampler and Chib's evidence approximation for a generic univariate mixture of normal distributions
probitll

Log-likelihood of the probit model
hmhmm

Estimation of a hidden Markov model with 2 hidden and 4 observed states
eurodip

European Dipper dataset
logitll

Log-likelihood of the logit model
logitnoinflpost

Log of the posterior distribution for the probit model under a noninformative prior
pdarroch

Posterior probabilities for the Darroch model
truncnorm

Random simulator for the truncated normal distribution
caterpillar

Pine processionary caterpillar dataset
reconstruct

Image reconstruction for the Potts model with six classes
thresh

Bound for the accept-reject algorithm in Chapter 5
rdirichlet

Random generator for the Dirichlet distribution
gibbscap2

Gibbs sampling for the Arnason-Schwarz capture-recapture model
isinghm

Metropolis-Hastings for the Ising model
hmnoinfloglin

Metropolis-Hastings for the log-linear model under a noninformative prior
hmnoinfprobit

Metropolis-Hastings for the probit model under a noninformative prior
hmflatloglin

Metropolis-Hastings for the log-linear model under a flat prior
loglinnoinflpost

Log of the posterior density for the log-linear model under a noninformative prior
datha

Non-standardised Licence dataset
loglinll

Log of the likelihood of the log-linear model
isingibbs

Gibbs sampler for the Ising model
xneig4

Number of neighbours with the same colour
pottsgibbs

Gibbs sampler for the Potts model
plotmix

Graphical representation of a normal mixture log-likelihood
pottshm

Metropolis-Hastings sampler for a Potts model with ncol classes
sumising

Approximation by path sampling of the normalising constant for the Ising model
pbino

Posterior expectation for the binomial capture-recapture model
probet

Coverage of the interval \((a,b)\) by the Beta cdf
solbeta

Recursive resolution of beta prior calibration
hmflatlogit

Metropolis-Hastings for the logit model under a flat prior
normaldata

Normal dataset
ARllog

log-likelihood associated with an AR(p) model defined either through its natural coefficients or through the roots of the associated lag-polynomial
BayesReg

Bayesian linear regression output
Menteith

Grey-level image of the Lake of Menteith
MAllog

log-likelihood associated with an MA(p) model
Dnadataset

DNA sequence of an HIV genome
ModChoBayesReg

Bayesian model choice procedure for the linear model
MAmh

Metropolis--Hastings evaluation of the posterior associated with an MA(p) model
gibbscap1

Gibbs sampler for the two-stage open population capture-recapture model
Laichedata

Laiche dataset
Eurostoxx50

Eurostoxx50 exerpt dataset