sample.pop: Sample Populations from the Wright-Fisher Model

Description Usage Arguments Value

View source: R/tm.R

Description

Samples a population of the desired size from the Wright-Fisher model.

Usage

1
sample.pop(transitions, pi=NULL, pop.size, mu)

Arguments

transitions

Transition matrix between types

pi

Stationary distribution associated with the transition matrix, or NULL to compute it

pop.size

Desired population size

mu

Mutation rate

Value

A vector representing the sampled population.


TimeMachine documentation built on May 30, 2017, 1:36 a.m.