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.5.tar.gz", repos = NULL, type = "source")

  • the package is also available on the CRAN

Copy Link

Version

Install

install.packages('bayess')

Monthly Downloads

336

Version

1.6

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

JeanMichel Marin

Last Published

March 6th, 2024

Functions in bayess (1.6)

ARllog

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

Eurostoxx50 exerpt dataset
Menteith

Grey-level image of the Lake of Menteith
ModChoBayesReg

Bayesian model choice procedure for the linear model
gibbscap1

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

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

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

Metropolis-Hastings for the Ising model
MAllog

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

Gibbs sampler for the Ising model
Dnadataset

DNA sequence of an HIV genome
ardipper

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

Laiche dataset
eurodip

European Dipper dataset
caterpillar

Pine processionary caterpillar dataset
bank

bank dataset (Chapter 4)
datha

Non-standardised Licence dataset
MAmh

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

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

Gibbs sampler on a mixture posterior distribution with unknown means
hmnoinfloglin

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

Gibbs sampler for a generic mixture posterior distribution
normaldata

Normal dataset
hmflatprobit

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

Posterior expectation for the binomial capture-recapture model
gibbs

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

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

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

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

Log-likelihood of the logit model
hmhmm

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

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

Posterior probabilities for the multiple stage capture-recapture model
pdarroch

Posterior probabilities for the Darroch model
thresh

Bound for the accept-reject algorithm in Chapter 5
pottshm

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

Recursive resolution of beta prior calibration
sumising

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

Random simulator for the truncated normal distribution
hmflatloglin

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

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

Graphical representation of a normal mixture log-likelihood
pottsgibbs

Gibbs sampler for the Potts model
probitll

Log-likelihood of the probit model
probitnoinflpost

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

Number of neighbours with the same colour
loglinll

Log of the likelihood of the log-linear model
loglinnoinflpost

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

Random generator for the Dirichlet distribution
reconstruct

Image reconstruction for the Potts model with six classes
BayesReg

Bayesian linear regression output