View source: R/interface_abc.R
create_abc_param | R Documentation |
This function creates an object compatible with the param
argument of the abc
function from coala's simulation
results.
create_abc_param(sim_results, model)
sim_results |
The simulation results as returned from
|
model |
The model used for the simulations. |
A data.frame that can be used as param
argument of abc
.
For generating abc's summary statistics format:
create_abc_sumstat
model <- coal_model(10, 1) + feat_mutation(par_prior("theta", rnorm(1, 5, .5))) + sumstat_sfs() sim_results <- simulate(model, nsim = 2) abc_param <- create_abc_param(sim_results, model) print(abc_param)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.