View source: R/functions_ABC.R
statsContig | R Documentation |
Computes a defined set of summary statistics from observed data. Those summary statistics can then be used as the target for parameter estimation or model selection with Approximate Bayesian Computation.
statsContig(randomWindows, nPops, stat.names = NA)
randomWindows |
a list with randomly selected loci of observed data.
This list should contain five elements: |
nPops |
is an integer indicating how many different populations are present in the dataset you are analysing. |
stat.names |
optional character vector with the names of the summary statistics from the simulated data. If available, these names will be added to the summary statistics computed from the observed data. |
Summary statistics are computed for a given subset of the data. Ideally, this subset is composed of randomly selected windows of the observed data. Those random windows should be selected from multiple contigs, treating each contig as a different locus.
a vector of observed summary statistics. These summary statistics are
computed from blocks of observed data present in the randomWindows
input
argument. If the stat.names
input argument is available, the summary
statistics will be named.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.