Learn R Programming

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

abc (version 2.0)

Tools for Approximate Bayesian Computation (ABC)

Description

The package implements several ABC algorithms for performing parameter estimation, model selection, and goodness-of-fit. Cross-validation tools are also available for measuring the accuracy of ABC estimates, and to calculate the misclassification probabilities of different models.

Copy Link

Version

Install

install.packages('abc')

Monthly Downloads

1,391

Version

2.0

License

GPL (>= 3)

Maintainer

Blum Michael

Last Published

July 11th, 2014

Functions in abc (2.0)

human

A set of R objects containing observed data from three human populations, and simulated data under three different demographic models. The data set is used to illustrate model selection and parameter inference in an ABC framework (see the package's vignette for more details).
gfit

Goodness of fit
ppc

Data to illustrate the posterior predictive checks for the data human. ppc and human are used to illustrate model selection and parameter inference in an ABC framework (see the package's vignette for more details).
summary.postpr

Posterior model probabilities and Bayes factors
summary.cv4abc

Calculates the cross-validation prediction error
gfitpca

Goodness of fit with principal component analysis
plot.cv4abc

Cross-validation plots for ABC
abc

Parameter estimation with Approximate Bayesian Computation (ABC)
plot.cv4postpr

Barplot of model misclassification
summary.cv4postpr

Confusion matrix and misclassification probabilities of models
musigma2

A set of objects used to estimate the population mean and variance in a Gaussian model with ABC.
summary.abc

Summaries of posterior samples generated by ABC algortithms
cv4abc

Cross validation for Approximate Bayesian Computation (ABC)
plot.gfit

Goodness-of-fit plot for ABC
plot.abc

Diagnostic plots for ABC
summary.gfit

Calculates the p-value of the goodness-of-fit test.
hist.abc

Posterior histograms
postpr

Estimating posterior model probabilities
cv4postpr

Leave-one-our cross validation for model selection ABC
expected.deviance

Expected deviance