Skip to contents

Approximate Bayesian Computation

validate_abc()
Validate individual components of an ABC model
simulate_abc()
Simulate data for downstream ABC posterior inference by sampling from priors
run_abc()
Perform ABC on data generated by simulate_abc

Grid-based inference

simulate_grid()
Simulate values of summary statistics across a parameter grid

ABC cross-validation and posterior checks

unpack()
Unpack demografr object into individual components of the abc package
cross_validate()
Run cross-validation routines of the R package abc
select_model()
Perform selection between different ABC models
predict(<demografr_abc.abc>)
Simulate given summary statistics from the inferred parameter model posteriors
extract_prediction()
Unnest the predicted values of a given statistic from the simulated data
plot_prediction()
Plot the result of a posterior predictive check for a given summary statistic

Analysis of ABC inference results

extract_summary()
Extract estimated model parameters in a tabular format
extract_posterior()
Extract inferred posteriors in a tabular format
plot_prior()
Plot prior distributions of model parameters
plot_posterior()
Plot posterior distributions of given parameters
plot(<demografr_abc.abc>)
Plot various diagnostics of posterior distributions
hist(<demografr_abc.abc>)
Plot histogram of posterior distributions

Helper functions

summarise_data()
Apply summary statistic functions to the simulated data
simulate_model()
Simulate data (by default, a tree sequence) from a model (by default, a slendr function)
combine_data()
Combine multiple individual ABC simulation runs into one
sample_prior()
Sample value from a given prior sampling formula object