Description Usage Arguments Value
This function implements the Lenormand algorithm for ABC-SMC designed from the
EasyABC
R package on arbitrarily user-defined clusters.
1 2 3 4 5 6 7 8 9 10 11 | abc_smc_cluster(
model,
prior,
nsims,
summary_stat_target,
prior_test = NULL,
verbose = FALSE,
dist_weights = NULL,
cl,
...
)
|
model |
a |
prior |
a list of prior information. Each element of the list corresponds to a model parameter. The list element must be a vector whose first argument determines the type of prior distribution. |
nsims |
the number of simulations below the tolerance threshold is
equal to |
summary_stat_target |
a vector containing the targeted (observed) summary statistics. |
prior_test |
a string expressing the constraints between model
parameters. This expression will be evaluated as a logical expression,
you can use all the logical operators including |
verbose |
If |
dist_weights |
a vector containing the weights to apply to the distance between the computed and the targeted statistics. These weights can be used to give more importance to a summary statistisc for example. The weights will be normalized before applying them. If not provided, no weights will be applied. |
cl |
cluster object, such as that produced by |
... |
Additional arguments can be passed depending on the choosen method (see below). |
The returned value is a list containing the following components:
param |
The model parameters used in the |
stats |
The summary statistics obtained at the end of the |
weights |
The weights of the different |
stats_normalization |
The standard deviation of the summary statistics
across the |
epsilon |
The final maximal distance between simulations and data in the retained sample of particles. |
nsim |
The number of |
computime |
The computing time to perform the simulations. |
intermediary |
Intermediary results stored when the option
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.