abc_batch | R Documentation |
Interal function carrying out part of ABC inference calculations
abc_batch(sobs, priorSims, simStats, M, v = NULL)
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 |
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.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.