scaled.migration {poolABC}R Documentation

Compute scaled migration rates

Description

Computes and adds scaled migration rates to a matrix of simulated parameter values.

Usage

scaled.migration(parameters, model, Nref = NA)

Arguments

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.

Details

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.

Value

a matrix of simulated parameter values with added columns containing the scaled migration rates.

Examples

# compute scaled migration for a two-population model
scaled.migration(parameters = myparams, model = "2pops", Nref = 10000)


[Package poolABC version 1.0.0 Index]