Description Usage Arguments Details Value See Also
Perform ABC sampling and distance calculation using the stick breaking procedure.
1 2 3 4 5 6 7 8 9 10 11 | sample_ABC_rdirdirgamma_beta_cpp(
n_sample,
m_sample,
alpha_0,
beta_0,
nu_0,
mtx_obs,
reps,
p_norm = 2,
use_optimized_summary = 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 |
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) |
samples from Dirichlet using rdirdirgamma_beta_cpp()
.
computes summary statistics on datasets:
column-wise mean
column-wise standard deviation
or a set of column-wise moments (mean, sd, kurtosis, skewness).
the generated dataset is invisibly is truncated to the same amount of rows as the observed dataset.
compute the Minkowski norms of the differences between summary statistics.
repeat reps
times.
this function uses R's RNG seed.
a reps*2 matrix of distances between summary statistics
Other ABC functions:
compute_ABC_cpp()
,
compute_distances_gen_obs_cpp()
,
generate_acceptable_data_cpp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.