Learn R Programming

TimeMachine (version 1.0)

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

Description

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

Usage

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.