View source: R/functions_ABC.R
scaled.migration | R Documentation |
Computes and adds scaled migration rates to a matrix of simulated parameter values.
scaled.migration(parameters, model, Nref = NA)
parameters |
is a matrix of simulated parameter values i.e. numbers from the simulations. Each row or vector entry should be a different simulation and each column of a matrix should be a different parameter. |
model |
a character, either 2pops", "Single" or "Parallel" indicating which model was simulated. |
Nref |
a numeric value indicating the effective population size of the reference population. |
Migration rates are scaled according to the size of the population receiving the migrants and added to a matrix with the simulated parameter values. This is performed for the three available models and according to the specific model conformation.
a matrix of simulated parameter values with added columns containing the scaled migration rates.
# compute scaled migration for a two-population model
scaled.migration(parameters = myparams, model = "2pops", Nref = 10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.