Description Usage Arguments Value See Also
Perform ABC sampling using the stick breaking procedure, returning the acceptance ratio.
Similar to sample_ABC_rdirdirgamma_beta_cpp()
but also performs the acceptance step.
1 2 3 4 5 6 7 8 9 10 11 12 13 | compute_ABC_cpp(
n_sample,
m_sample,
alpha_0,
beta_0,
nu_0,
mtx_obs,
summarize_eps,
reps,
p_norm,
use_optimized_summary,
return_distances = FALSE
)
|
n_sample |
hyperparameters that are used to generate data: number of samples per source |
m_sample |
hyperparameters that are used to generate data: number of sources |
alpha_0 |
hyperparameters that are used to generate data |
beta_0 |
hyperparameters that are used to generate data |
nu_0 |
hyperparameters that are used to generate data |
mtx_obs |
the observed data matrix |
summarize_eps |
ABC thresholds: as many as summary statistics |
reps |
number of ABC samples to generate |
p_norm |
exponent of the L^p norm (can be |
use_optimized_summary |
if TRUE, return the optimized summary statistics (mean, sd, kurtosis, skewness), else standard (mean, sd) |
return_distances |
if TRUE, also return distances for all samples |
a list with components:
n_accepted
: number of accepted samples
accept_ratio
: the acceptance ratio, where 1 means that all max_iter samples were accepted.
d_ABC
: a (max_iter x n_summary) matrix of distances (if return_distances
is TRUE)
Other ABC functions:
compute_distances_gen_obs_cpp()
,
generate_acceptable_data_cpp()
,
sample_ABC_rdirdirgamma_beta_cpp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.