"SimInf_abc"Class "SimInf_abc"
modelThe SimInf_model object to estimate parameters
in.
priorsA data.frame containing the four columns
parameter, distribution, p1 and
p2. The column parameter gives the name of the
parameter referred to in the model. The column
distribution contains the name of the prior
distribution. Valid distributions are 'gamma', 'normal' or
'uniform'. The column p1 is a numeric vector with the
first hyperparameter for each prior: 'gamma') shape,
'lognormal') logmean, 'normal') mean, and 'uniform') lower
bound. The column p2 is a numeric vector with the
second hyperparameter for each prior: 'gamma') rate,
'lognormal') standard deviation on the log scale, 'normal')
standard deviation, and 'uniform') upper bound.
targetCharacter vector (gdata or ldata) that
determines if the ABC-SMC method estimates parameters in
model@gdata or in model@ldata.
parsIndex to the parameters in target.
npropAn integer vector with the number of simulated proposals in each generation.
fnA function for calculating the summary statistics for the
simulated trajectory and determine the distance for each
particle, see abc for more details.
toleranceA numeric matrix (number of summary statistics \(\times\) number of generations) where each column contains the tolerances for a generation and each row contains a sequence of gradually decreasing tolerances.
xA numeric array (number of particles \(\times\) number of parameters \(\times\) number of generations) with the parameter values for the accepted particles in each generation. Each row is one particle.
weightA numeric matrix (number of particles \(\times\)
number of generations) with the weights for the particles
x in the corresponding generation.
distanceA numeric array (number of particles \(\times\)
number of summary statistics \(\times\) number of
generations) with the distance for the particles x in
each generation. Each row contains the distance for a particle
and each column contains the distance for a summary statistic.
essA numeric vector with the effective sample size (ESS) in each generation. The effective sample size is computed as $$\left(\sum_{i=1}^N\!(w_{g}^{(i)})^2\right)^{-1},$$ where \(w_{g}^{(i)}\) is the normalized weight of particle \(i\) in generation \(g\).
init_modelAn optional function that, if non-NULL, is
applied before running each proposal. The function must accept
one argument of type SimInf_model with the current
model of the fitting process. This function can be useful to
specify the initial state of u0 or v0 of the
model before running a trajectory with proposed parameters.
abc and continue_abc.