Learn R Programming

coala (version 0.2.0)

feat_recombination: Feature: Recombination

Description

Adds intra-locus recombination to a model.

Usage

feat_recombination(rate)

Arguments

rate
A parameter defining the recombination rate (see above).

Value

  • The demographic model with recombination

Details

The corresponding rate parameter is 4*N0*r, where r is the probability that a recombination event within the locus will occur in one generation. Even when using an infinite sites mutation model, this assumes an finite locus length.

Examples

Run this code
# A model with a fixed recombination rate of 5
model <- coal_model(c(25,25), 100, 1000) +
  feat_recombination(5)

Run the code above in your browser using DataLab