Learn R Programming

⚠️There's a newer version (1.6) of this package.Take me there.

bayess (version 1.4)

Bayesian Essentials with R

Description

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

Copy Link

Version

Install

install.packages('bayess')

Monthly Downloads

367

Version

1.4

License

GPL-2

Maintainer

Christian P Robert

Last Published

February 9th, 2013

Functions in bayess (1.4)

Dnadataset

DNA sequence of an HIV genome
MAmh

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

Laiche dataset
ardipper

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

Gibbs sampler on a mixture posterior distribution with unknown means
gibbscap2

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

Grey-level image of the Lake of Menteith
hmnoinfloglin

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

Gibbs sampler for a generic mixture posterior distribution
pdarroch

Posterior probabilities for the Darroch model
eurodip

European Dipper dataset
ModChoBayesReg

Bayesian model choice procedure for the linear model
gibbs

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

Gibbs sampler for the Ising model
gibbscap1

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

Log-likelihood of the probit model
truncnorm

Random simulator for the truncated normal distribution
datha

Non-standardised Licence dataset
caterpillar

Pine processionary caterpillar dataset
probet

Coverage of the interval $(a,b)$ by the Beta cdf
normaldata

Normal dataset
bank

bank dataset (Chapter 4)
Eurostoxx50

Eurostoxx50 exerpt dataset
rdirichlet

Random generator for the Dirichlet distribution
thresh

Bound for the accept-reject algorithm in Chapter 5
BayesReg

Bayesian linear regression output
plotmix

Graphical representation of a normal mixture log-likelihood
ARmh

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

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

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

Posterior expectation for the binomial capture-recapture model
hmhmm

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

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

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

Recursive resolution of beta prior calibration
pottshm

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

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

Metropolis-Hastings for the probit model under a flat prior
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
pcapture

Posterior probabilities for the multiple stage capture-recapture model
pottsgibbs

Gibbs sampler for the Potts model
reconstruct

Image reconstruction for the Potts model with six classes
xneig4

Number of neighbours with the same colour
hmflatlogit

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

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

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

Log-likelihood of the logit model
hmnoinflogit

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

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

Metropolis-Hastings for the Ising model