WFsim: Wright-Fisher Sample

Description Usage Arguments Details Value Author(s)

Description

Generate a realisation of the Wright-Fisher population model

Usage

1
WFsim(N, N.gen, prob = NULL)

Arguments

N

constant population size

N.gen

number of generations to simulate

prob

function providing probabilities for (non-uniform) multinomial sampling of parents

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. The function prob should take a vector argument specifying a set of individuals; and should return a vector of (unnormalised) probability weights.

Value

an object of class 'genealogy'

Author(s)

Suzie Brown


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