Determine a starting value for ABC's delta
preCalibration.Rd
In ABC settings a model solution is compared to data with an acceptance threshold: delta. This-pre calibration function attempts to adjust this delta value.
Usage
preCalibration(
objectiveFunction,
npc = 1000,
rprior,
rep = 1,
p = 0.05,
sfactor = 0.1,
delta = 0.01,
num = 1
)
Arguments
- objectiveFunction
function that, given a (vectorial) parameter as input, simulates the model, and outputs the distance between experimental data and data simulated from the model with the parameter provided in input
- npc
sample size of pre-calibration
- rprior
a function that generates random ABC variables, distributed according to the prior
- rep
number of repetitions of the preCalibration process