abc_batch: Single batch of ABC

View source: R/abc.R

abc_batchR Documentation

Single batch of ABC

Description

Interal function carrying out part of ABC inference calculations

Usage

abc_batch(sobs, priorSims, simStats, M, v = NULL)

Arguments

sobs

Vector of observed summary statistics.

priorSims

Matrix whose rows are vector of parameters drawn from the prior.

simStats

Function mapping a vector of parameters to summary statistics.

M

How many simulations to accept in this batch.

v

Optional vector of estimated variances for each summary statistic

Details

Outputs a list containing: 1) matrix whose rows are accepted parameter vectors, and a column of resulting distances 2) value of v. If v is not supplied then variances are estimated here and returned. (The idea is that this is done for the first batch, and these values are reused from then on.)


gk documentation built on Aug. 10, 2023, 5:06 p.m.

Related to abc_batch in gk...