moranSim: Moran Sample

Description Usage Arguments Details Value Author(s)

Description

Generate a realisation of the Moran population model

Usage

1
moranSim(N, N.gen, rescale = FALSE)

Arguments

N

constant population size

N.gen

number of generations (single reproductions) to simulate

rescale

return only every Nth generation? (for comparability with W-F model)

Details

The attribute 'history' contains an (N.gen-1)xN matrix , where the (i,j)th entry specifies the parent of individual j of generation i+1. For comparability to Wright-Fisher model, multiply N.gen by N: one generation in W-F model comprises N reproduction events. Note that when rescale=TRUE, the returned value of N.gen is the scaled number of generations, and is not equal to the inputted N.gen.

Value

an object of class 'genealogy'

Author(s)

Suzie Brown


suziebrown/miniproject1 documentation built on May 26, 2019, 9:36 a.m.