Learn R Programming

AFLPsim (version 0.4-2)

demosimhybrid: Demographic model of introgressive hybridization

Description

This model simulates the proportions of parentals, F1, F2, Fx and backcross (on both sides) individuals for each generation and takes into account the initial frequencies of parentals, the assortative mating among taxa as well as fitness differences.

Usage

demosimhybrid(x,M,F)

Arguments

x
A vector indicating the initial abundances in the population.The vector should sum 1. The order of abundances is: ParentalA, ParentalB, F1, BxA, BxB and Fx
M
Matrix assortative mating.The size is 6x6 following the same order tan vector x. By default random mating (all = 1)
F
A vector indicating the diferent fecundities of the parentals and hybrids. The vector size is 6 following the same order tan vector x. By default equal fecundities (all = 1)

Value

  • a object demosimhybrid. An matrix of abundances in each generation

encoding

latin1

Details

This function simulate the model of introgresive hibridization of Epifanio and Philipp (2000)

References

Epifanio, J. & D. Philipp. 2000. Simulating the extinction of parental lineages from introgressive hybridization: the effects of fitness, initial proportions of parental taxa, and mate choice. Reviews in Fish Biology and Fisheries 10: 339-354.

See Also

hybridsim

plot.demosimhybrid

Examples

Run this code
## Example 1. Simulation under parental proportions,
## similar fecundities and random mating 
inivalues<-c(0.5,0.5,0,0,0,0)
epi0.5<-demosimhybrid(inivalues)
epi0.5


## Example 2. Simulation under higher frecuency of parental B,
## and higher fecundy of parental A and random mating
inivalues2<-c(0.25,0.75,0,0,0,0)
fecundities<-c(1,0.5,0.5,0.5,0.5,0.5)
epi0.75<-demosimhybrid(x=inivalues, F=fecundities)
epi0.75

Run the code above in your browser using DataLab