coalmig {genealogy}R Documentation

Generate trees from the symmetric island model.

Description

This function generates trees from the symmetric island model.

Usage

coalmig(n, M)

Arguments

n The sample size n.
M The scaled migration rate M.

Details

A simple function to generate trees from the symmetric Island model of Sewell Wright.

Value

Returns an object of class migtree with components

t The coalescence times
d1 The labels of "left" descendents
d2 The labels of "right" descendents
location The location of samples.

See Also

coal1, mutate

Examples

m1 <- coalmig(c(10,10,10,10,10),M=0.5);
plot(m1);

[Package genealogy version 0.01 Index]