coalgen_hetero: Simulate coalescent times for heterochronous data.

Description Usage Arguments Value Author(s) References Examples

Description

coalgen_hetero simulates coalescent times for heterochronous data.

Usage

1
coalgen_hetero(sample, trajectory, val_upper = 10)

Arguments

sample

A two columns matrix of number of individuals and the initial time.

trajectory

A population growth function.

val_upper

Upper end of time points to be simulated.

Value

Coalescent intervals and lineages.

Author(s)

Fei Xiang (xf3087@gmail.com)

References

https://github.com/JuliaPalacios/coalsieve.

Examples

1
2
3
4
sample1<-cbind(c(9,1,2,1),c(0,.008,.03,.1))

trajectory<-function(x)  exp(10*x)
example_hetero<-coalgen_hetero(sample1, trajectory)

xiangfstats/GenieR documentation built on May 4, 2019, 1:06 p.m.